public class CreateSparkSessionBatchSQLRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateSparkSessionBatchSQLRequest() |
CreateSparkSessionBatchSQLRequest(CreateSparkSessionBatchSQLRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
KVPair[] |
getArguments()
Get The session configurations.
|
String |
getCustomKey()
Get User-defined primary key, and it should be unique.
|
String |
getDataEngineName()
Get The name of the engine for executing the Spark job.
|
String |
getDriverSize()
Get The driver size.
|
String |
getExecuteSQL()
Get Run SQL.
|
Long |
getExecutorMaxNumbers()
Get The maximum executor count, which defaults to 1.
|
Long |
getExecutorNumbers()
Get The executor count, which defaults to 1.
|
String |
getExecutorSize()
Get The executor size.
|
Long |
getIsInherit()
Get Whether to inherit the resource configuration of clusters; 0: not inherit (by default); 1: inherit clusters.
|
String |
getSessionId()
Get The unique ID of a session.
|
String |
getSessionName()
Get The name of the session to create.
|
Long |
getTimeoutInSecond()
Get The session timeout period in seconds.
|
void |
setArguments(KVPair[] Arguments)
Set The session configurations.
|
void |
setCustomKey(String CustomKey)
Set User-defined primary key, and it should be unique.
|
void |
setDataEngineName(String DataEngineName)
Set The name of the engine for executing the Spark job.
|
void |
setDriverSize(String DriverSize)
Set The driver size.
|
void |
setExecuteSQL(String ExecuteSQL)
Set Run SQL.
|
void |
setExecutorMaxNumbers(Long ExecutorMaxNumbers)
Set The maximum executor count, which defaults to 1.
|
void |
setExecutorNumbers(Long ExecutorNumbers)
Set The executor count, which defaults to 1.
|
void |
setExecutorSize(String ExecutorSize)
Set The executor size.
|
void |
setIsInherit(Long IsInherit)
Set Whether to inherit the resource configuration of clusters; 0: not inherit (by default); 1: inherit clusters.
|
void |
setSessionId(String SessionId)
Set The unique ID of a session.
|
void |
setSessionName(String SessionName)
Set The name of the session to create.
|
void |
setTimeoutInSecond(Long TimeoutInSecond)
Set The session timeout period in seconds.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateSparkSessionBatchSQLRequest()
public CreateSparkSessionBatchSQLRequest(CreateSparkSessionBatchSQLRequest source)
public String getDataEngineName()
public void setDataEngineName(String DataEngineName)
DataEngineName
- The name of the engine for executing the Spark job.public String getExecuteSQL()
public void setExecuteSQL(String ExecuteSQL)
ExecuteSQL
- Run SQL. The base64 encoding is needed.public String getDriverSize()
public void setDriverSize(String DriverSize)
DriverSize
- The driver size. Valid values: `small` (default, 1 CU), `medium` (2 CUs), `large` (4 CUs), and `xlarge` (8 CUs).public String getExecutorSize()
public void setExecutorSize(String ExecutorSize)
ExecutorSize
- The executor size. Valid values: `small` (default, 1 CU), `medium` (2 CUs), `large` (4 CUs), and `xlarge` (8 CUs).public Long getExecutorNumbers()
public void setExecutorNumbers(Long ExecutorNumbers)
ExecutorNumbers
- The executor count, which defaults to 1.public Long getExecutorMaxNumbers()
public void setExecutorMaxNumbers(Long ExecutorMaxNumbers)
ExecutorMaxNumbers
- The maximum executor count, which defaults to 1. This parameter applies if the "Dynamic" mode is selected. If the "Dynamic" mode is not selected, the value of this parameter is the same as that of `ExecutorNumbers`.public Long getTimeoutInSecond()
public void setTimeoutInSecond(Long TimeoutInSecond)
TimeoutInSecond
- The session timeout period in seconds. Default value: 3600public String getSessionId()
public void setSessionId(String SessionId)
SessionId
- The unique ID of a session. If this parameter is specified, the task will be run using the specified session.public String getSessionName()
public void setSessionName(String SessionName)
SessionName
- The name of the session to create.public KVPair[] getArguments()
public void setArguments(KVPair[] Arguments)
Arguments
- The session configurations. Valid values: `1.dlc.eni` for user-defined ENI gateway information;
`2.dlc.role.arn` for user-defined roleArn configurations;
and `3.dlc.sql.set.config` for user-defined cluster configurations.public Long getIsInherit()
public void setIsInherit(Long IsInherit)
IsInherit
- Whether to inherit the resource configuration of clusters; 0: not inherit (by default); 1: inherit clusters.public String getCustomKey()
public void setCustomKey(String CustomKey)
CustomKey
- User-defined primary key, and it should be unique.Copyright © 2025. All rights reserved.