NotebookSessionProperties Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. NotebookSessionProperties
- com.
Implements
public final class NotebookSessionProperties
implements JsonSerializable<NotebookSessionProperties>
Session properties.
Constructor Summary
| Constructor | Description |
|---|---|
| NotebookSessionProperties() |
Creates an instance of Notebook |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Notebook |
fromJson(JsonReader jsonReader)
Reads an instance of Notebook |
| int |
getDriverCores()
Get the driver |
| String |
getDriverMemory()
Get the driver |
| int |
getExecutorCores()
Get the executor |
| String |
getExecutorMemory()
Get the executor |
| int |
getNumExecutors()
Get the num |
|
Notebook |
setDriverCores(int driverCores)
Set the driver |
|
Notebook |
setDriverMemory(String driverMemory)
Set the driver |
|
Notebook |
setExecutorCores(int executorCores)
Set the executor |
|
Notebook |
setExecutorMemory(String executorMemory)
Set the executor |
|
Notebook |
setNumExecutors(int numExecutors)
Set the num |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
NotebookSessionProperties
public NotebookSessionProperties()
Creates an instance of NotebookSessionProperties class.
Method Details
fromJson
public static NotebookSessionProperties fromJson(JsonReader jsonReader)
Reads an instance of NotebookSessionProperties from the JsonReader.
Parameters:
Returns:
Throws:
getDriverCores
public int getDriverCores()
Get the driverCores property: Number of cores to use for the driver.
Returns:
getDriverMemory
public String getDriverMemory()
Get the driverMemory property: Amount of memory to use for the driver process.
Returns:
getExecutorCores
public int getExecutorCores()
Get the executorCores property: Number of cores to use for each executor.
Returns:
getExecutorMemory
public String getExecutorMemory()
Get the executorMemory property: Amount of memory to use per executor process.
Returns:
getNumExecutors
public int getNumExecutors()
Get the numExecutors property: Number of executors to launch for this session.
Returns:
setDriverCores
public NotebookSessionProperties setDriverCores(int driverCores)
Set the driverCores property: Number of cores to use for the driver.
Parameters:
Returns:
setDriverMemory
public NotebookSessionProperties setDriverMemory(String driverMemory)
Set the driverMemory property: Amount of memory to use for the driver process.
Parameters:
Returns:
setExecutorCores
public NotebookSessionProperties setExecutorCores(int executorCores)
Set the executorCores property: Number of cores to use for each executor.
Parameters:
Returns:
setExecutorMemory
public NotebookSessionProperties setExecutorMemory(String executorMemory)
Set the executorMemory property: Amount of memory to use per executor process.
Parameters:
Returns:
setNumExecutors
public NotebookSessionProperties setNumExecutors(int numExecutors)
Set the numExecutors property: Number of executors to launch for this session.
Parameters:
Returns: