SparkSession Class

  • java.lang.Object
    • com.azure.analytics.synapse.spark.models.SparkSession

public final class SparkSession

The SparkSession model.

Constructor Summary

Constructor Description
SparkSession()

Method Summary

Modifier and Type Method and Description
String getAppId()

Get the appId property: The appId property.

Map<String,String> getAppInfo()

Get the appInfo property: Dictionary of .

String getArtifactId()

Get the artifactId property: The artifactId property.

List<SparkServiceError> getErrors()

Get the errors property: The errorInfo property.

int getId()

Get the id property: The id property.

SparkJobType getJobType()

Get the jobType property: The job type.

SparkSessionState getLivyInfo()

Get the livyInfo property: The livyInfo property.

List<String> getLogLines()

Get the logLines property: The log property.

String getName()

Get the name property: The name property.

SparkServicePlugin getPlugin()

Get the plugin property: The pluginInfo property.

SparkSessionResultType getResult()

Get the result property: The result property.

SparkScheduler getScheduler()

Get the scheduler property: The schedulerInfo property.

String getSparkPoolName()

Get the sparkPoolName property: The sparkPoolName property.

LivyStates getState()

Get the state property: The session state.

String getSubmitterId()

Get the submitterId property: The submitterId property.

String getSubmitterName()

Get the submitterName property: The submitterName property.

Map<String,String> getTags()

Get the tags property: Dictionary of .

String getWorkspaceName()

Get the workspaceName property: The workspaceName property.

SparkSession setAppId(String appId)

Set the appId property: The appId property.

SparkSession setAppInfo(Map<String,String> appInfo)

Set the appInfo property: Dictionary of .

SparkSession setArtifactId(String artifactId)

Set the artifactId property: The artifactId property.

SparkSession setErrors(List<SparkServiceError> errors)

Set the errors property: The errorInfo property.

SparkSession setId(int id)

Set the id property: The id property.

SparkSession setJobType(SparkJobType jobType)

Set the jobType property: The job type.

SparkSession setLivyInfo(SparkSessionState livyInfo)

Set the livyInfo property: The livyInfo property.

SparkSession setLogLines(List<String> logLines)

Set the logLines property: The log property.

SparkSession setName(String name)

Set the name property: The name property.

SparkSession setPlugin(SparkServicePlugin plugin)

Set the plugin property: The pluginInfo property.

SparkSession setResult(SparkSessionResultType result)

Set the result property: The result property.

SparkSession setScheduler(SparkScheduler scheduler)

Set the scheduler property: The schedulerInfo property.

SparkSession setSparkPoolName(String sparkPoolName)

Set the sparkPoolName property: The sparkPoolName property.

SparkSession setState(LivyStates state)

Set the state property: The session state.

SparkSession setSubmitterId(String submitterId)

Set the submitterId property: The submitterId property.

SparkSession setSubmitterName(String submitterName)

Set the submitterName property: The submitterName property.

SparkSession setTags(Map<String,String> tags)

Set the tags property: Dictionary of .

SparkSession setWorkspaceName(String workspaceName)

Set the workspaceName property: The workspaceName property.

Methods inherited from java.lang.Object

Constructor Details

SparkSession

public SparkSession()

Method Details

getAppId

public String getAppId()

Get the appId property: The appId property.

Returns:

the appId value.

getAppInfo

public Map getAppInfo()

Get the appInfo property: Dictionary of .

Returns:

the appInfo value.

getArtifactId

public String getArtifactId()

Get the artifactId property: The artifactId property.

Returns:

the artifactId value.

getErrors

public List getErrors()

Get the errors property: The errorInfo property.

Returns:

the errors value.

getId

public int getId()

Get the id property: The id property.

Returns:

the id value.

getJobType

public SparkJobType getJobType()

Get the jobType property: The job type.

Returns:

the jobType value.

getLivyInfo

public SparkSessionState getLivyInfo()

Get the livyInfo property: The livyInfo property.

Returns:

the livyInfo value.

getLogLines

public List getLogLines()

Get the logLines property: The log property.

Returns:

the logLines value.

getName

public String getName()

Get the name property: The name property.

Returns:

the name value.

getPlugin

public SparkServicePlugin getPlugin()

Get the plugin property: The pluginInfo property.

Returns:

the plugin value.

getResult

public SparkSessionResultType getResult()

Get the result property: The result property.

Returns:

the result value.

getScheduler

public SparkScheduler getScheduler()

Get the scheduler property: The schedulerInfo property.

Returns:

the scheduler value.

getSparkPoolName

public String getSparkPoolName()

Get the sparkPoolName property: The sparkPoolName property.

Returns:

the sparkPoolName value.

getState

public LivyStates getState()

Get the state property: The session state.

Returns:

the state value.

getSubmitterId

public String getSubmitterId()

Get the submitterId property: The submitterId property.

Returns:

the submitterId value.

getSubmitterName

public String getSubmitterName()

Get the submitterName property: The submitterName property.

Returns:

the submitterName value.

getTags

public Map getTags()

Get the tags property: Dictionary of .

Returns:

the tags value.

getWorkspaceName

public String getWorkspaceName()

Get the workspaceName property: The workspaceName property.

Returns:

the workspaceName value.

setAppId

public SparkSession setAppId(String appId)

Set the appId property: The appId property.

Parameters:

appId - the appId value to set.

Returns:

the SparkSession object itself.

setAppInfo

public SparkSession setAppInfo(Map appInfo)

Set the appInfo property: Dictionary of .

Parameters:

appInfo - the appInfo value to set.

Returns:

the SparkSession object itself.

setArtifactId

public SparkSession setArtifactId(String artifactId)

Set the artifactId property: The artifactId property.

Parameters:

artifactId - the artifactId value to set.

Returns:

the SparkSession object itself.

setErrors

public SparkSession setErrors(List errors)

Set the errors property: The errorInfo property.

Parameters:

errors - the errors value to set.

Returns:

the SparkSession object itself.

setId

public SparkSession setId(int id)

Set the id property: The id property.

Parameters:

id - the id value to set.

Returns:

the SparkSession object itself.

setJobType

public SparkSession setJobType(SparkJobType jobType)

Set the jobType property: The job type.

Parameters:

jobType - the jobType value to set.

Returns:

the SparkSession object itself.

setLivyInfo

public SparkSession setLivyInfo(SparkSessionState livyInfo)

Set the livyInfo property: The livyInfo property.

Parameters:

livyInfo - the livyInfo value to set.

Returns:

the SparkSession object itself.

setLogLines

public SparkSession setLogLines(List logLines)

Set the logLines property: The log property.

Parameters:

logLines - the logLines value to set.

Returns:

the SparkSession object itself.

setName

public SparkSession setName(String name)

Set the name property: The name property.

Parameters:

name - the name value to set.

Returns:

the SparkSession object itself.

setPlugin

public SparkSession setPlugin(SparkServicePlugin plugin)

Set the plugin property: The pluginInfo property.

Parameters:

plugin - the plugin value to set.

Returns:

the SparkSession object itself.

setResult

public SparkSession setResult(SparkSessionResultType result)

Set the result property: The result property.

Parameters:

result - the result value to set.

Returns:

the SparkSession object itself.

setScheduler

public SparkSession setScheduler(SparkScheduler scheduler)

Set the scheduler property: The schedulerInfo property.

Parameters:

scheduler - the scheduler value to set.

Returns:

the SparkSession object itself.

setSparkPoolName

public SparkSession setSparkPoolName(String sparkPoolName)

Set the sparkPoolName property: The sparkPoolName property.

Parameters:

sparkPoolName - the sparkPoolName value to set.

Returns:

the SparkSession object itself.

setState

public SparkSession setState(LivyStates state)

Set the state property: The session state.

Parameters:

state - the state value to set.

Returns:

the SparkSession object itself.

setSubmitterId

public SparkSession setSubmitterId(String submitterId)

Set the submitterId property: The submitterId property.

Parameters:

submitterId - the submitterId value to set.

Returns:

the SparkSession object itself.

setSubmitterName

public SparkSession setSubmitterName(String submitterName)

Set the submitterName property: The submitterName property.

Parameters:

submitterName - the submitterName value to set.

Returns:

the SparkSession object itself.

setTags

public SparkSession setTags(Map tags)

Set the tags property: Dictionary of .

Parameters:

tags - the tags value to set.

Returns:

the SparkSession object itself.

setWorkspaceName

public SparkSession setWorkspaceName(String workspaceName)

Set the workspaceName property: The workspaceName property.

Parameters:

workspaceName - the workspaceName value to set.

Returns:

the SparkSession object itself.

Applies to