SparkModelFactory.SparkSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of SparkSession.
public static Azure.Analytics.Synapse.Spark.Models.SparkSession SparkSession (Azure.Analytics.Synapse.Spark.Models.SparkSessionState livyInfo = default, string name = default, string workspaceName = default, string sparkPoolName = default, string submitterName = default, string submitterId = default, string artifactId = default, Azure.Analytics.Synapse.Spark.Models.SparkJobType? jobType = default, Azure.Analytics.Synapse.Spark.Models.SparkSessionResultType? result = default, Azure.Analytics.Synapse.Spark.Models.SparkScheduler scheduler = default, Azure.Analytics.Synapse.Spark.Models.SparkServicePlugin plugin = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Synapse.Spark.Models.SparkServiceError> errors = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default, int id = 0, string appId = default, System.Collections.Generic.IReadOnlyDictionary<string,string> appInfo = default, Azure.Analytics.Synapse.Spark.Models.LivyStates? state = default, System.Collections.Generic.IEnumerable<string> logLines = default);
static member SparkSession : Azure.Analytics.Synapse.Spark.Models.SparkSessionState * string * string * string * string * string * string * Nullable<Azure.Analytics.Synapse.Spark.Models.SparkJobType> * Nullable<Azure.Analytics.Synapse.Spark.Models.SparkSessionResultType> * Azure.Analytics.Synapse.Spark.Models.SparkScheduler * Azure.Analytics.Synapse.Spark.Models.SparkServicePlugin * seq<Azure.Analytics.Synapse.Spark.Models.SparkServiceError> * System.Collections.Generic.IReadOnlyDictionary<string, string> * int * string * System.Collections.Generic.IReadOnlyDictionary<string, string> * Nullable<Azure.Analytics.Synapse.Spark.Models.LivyStates> * seq<string> -> Azure.Analytics.Synapse.Spark.Models.SparkSession
Public Shared Function SparkSession (Optional livyInfo As SparkSessionState = Nothing, Optional name As String = Nothing, Optional workspaceName As String = Nothing, Optional sparkPoolName As String = Nothing, Optional submitterName As String = Nothing, Optional submitterId As String = Nothing, Optional artifactId As String = Nothing, Optional jobType As Nullable(Of SparkJobType) = Nothing, Optional result As Nullable(Of SparkSessionResultType) = Nothing, Optional scheduler As SparkScheduler = Nothing, Optional plugin As SparkServicePlugin = Nothing, Optional errors As IEnumerable(Of SparkServiceError) = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing, Optional id As Integer = 0, Optional appId As String = Nothing, Optional appInfo As IReadOnlyDictionary(Of String, String) = Nothing, Optional state As Nullable(Of LivyStates) = Nothing, Optional logLines As IEnumerable(Of String) = Nothing) As SparkSession
Parameters
- livyInfo
- SparkSessionState
- name
- String
- workspaceName
- String
- sparkPoolName
- String
- submitterName
- String
- submitterId
- String
- artifactId
- String
- jobType
- Nullable<SparkJobType>
The job type.
- result
- Nullable<SparkSessionResultType>
- scheduler
- SparkScheduler
- plugin
- SparkServicePlugin
- errors
- IEnumerable<SparkServiceError>
- tags
- IReadOnlyDictionary<String,String>
Dictionary of <string>.
- id
- Int32
- appId
- String
- appInfo
- IReadOnlyDictionary<String,String>
Dictionary of <string>.
- state
- Nullable<LivyStates>
The session state.
- logLines
- IEnumerable<String>
Returns
A new SparkSession instance for mocking.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET