Class SparkSession

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

public final class SparkSession extends Object
The SparkSession model.
  • Constructor Details

    • SparkSession

      public SparkSession()
  • Method Details

    • getLivyInfo

      public SparkSessionState getLivyInfo()
      Get the livyInfo property: The livyInfo property.
      Returns:
      the livyInfo value.
    • 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.
    • getName

      public String getName()
      Get the name property: The name property.
      Returns:
      the name value.
    • 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.
    • getWorkspaceName

      public String getWorkspaceName()
      Get the workspaceName property: The workspaceName property.
      Returns:
      the workspaceName value.
    • 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.
    • getSparkPoolName

      public String getSparkPoolName()
      Get the sparkPoolName property: The sparkPoolName property.
      Returns:
      the sparkPoolName value.
    • 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.
    • getSubmitterName

      public String getSubmitterName()
      Get the submitterName property: The submitterName property.
      Returns:
      the submitterName value.
    • 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.
    • getSubmitterId

      public String getSubmitterId()
      Get the submitterId property: The submitterId property.
      Returns:
      the submitterId value.
    • 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.
    • getArtifactId

      public String getArtifactId()
      Get the artifactId property: The artifactId property.
      Returns:
      the artifactId value.
    • 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.
    • getJobType

      public SparkJobType getJobType()
      Get the jobType property: The job type.
      Returns:
      the jobType value.
    • 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.
    • getResult

      public SparkSessionResultType getResult()
      Get the result property: The result property.
      Returns:
      the result value.
    • 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.
    • getScheduler

      public SparkScheduler getScheduler()
      Get the scheduler property: The schedulerInfo property.
      Returns:
      the scheduler value.
    • 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.
    • getPlugin

      public SparkServicePlugin getPlugin()
      Get the plugin property: The pluginInfo property.
      Returns:
      the plugin value.
    • 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.
    • getErrors

      public List<SparkServiceError> getErrors()
      Get the errors property: The errorInfo property.
      Returns:
      the errors value.
    • setErrors

      public SparkSession setErrors(List<SparkServiceError> errors)
      Set the errors property: The errorInfo property.
      Parameters:
      errors - the errors value to set.
      Returns:
      the SparkSession object itself.
    • getTags

      public Map<String,String> getTags()
      Get the tags property: Dictionary of <string>.
      Returns:
      the tags value.
    • setTags

      public SparkSession setTags(Map<String,String> tags)
      Set the tags property: Dictionary of <string>.
      Parameters:
      tags - the tags value to set.
      Returns:
      the SparkSession object itself.
    • getId

      public int getId()
      Get the id property: The id property.
      Returns:
      the id value.
    • 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.
    • getAppId

      public String getAppId()
      Get the appId property: The appId property.
      Returns:
      the appId 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.
    • getAppInfo

      public Map<String,String> getAppInfo()
      Get the appInfo property: Dictionary of <string>.
      Returns:
      the appInfo value.
    • setAppInfo

      public SparkSession setAppInfo(Map<String,String> appInfo)
      Set the appInfo property: Dictionary of <string>.
      Parameters:
      appInfo - the appInfo value to set.
      Returns:
      the SparkSession object itself.
    • getState

      public LivyStates getState()
      Get the state property: The session state.
      Returns:
      the state value.
    • 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.
    • getLogLines

      public List<String> getLogLines()
      Get the logLines property: The log property.
      Returns:
      the logLines value.
    • setLogLines

      public SparkSession setLogLines(List<String> logLines)
      Set the logLines property: The log property.
      Parameters:
      logLines - the logLines value to set.
      Returns:
      the SparkSession object itself.