SparkSession class
SparkSession を表すクラス。
コンストラクター
| Spark |
SparkSession を作成します。 |
メソッド
コンストラクターの詳細
SparkSession(SynapseClientContext)
SparkSession を作成します。
new SparkSession(client: SynapseClientContext)
パラメーター
- client
- SynapseClientContext
サービス クライアントへの参照。
メソッドの詳細
create(string, string, ExtendedLivySessionRequest, ServiceCallback<ExtendedLivySessionResponse>)
function create(workspaceName: string, sparkPoolName: string, livyRequest: ExtendedLivySessionRequest, callback: ServiceCallback<ExtendedLivySessionResponse>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- livyRequest
- ExtendedLivySessionRequest
Livy 互換のバッチ ジョブ要求ペイロード。
- callback
コールバック
create(string, string, ExtendedLivySessionRequest, SparkSessionCreateOptionalParams)
新しい Spark セッションを作成します。
function create(workspaceName: string, sparkPoolName: string, livyRequest: ExtendedLivySessionRequest, options?: SparkSessionCreateOptionalParams): Promise<SparkSessionCreateResponse>
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- livyRequest
- ExtendedLivySessionRequest
Livy 互換のバッチ ジョブ要求ペイロード。
- options
- SparkSessionCreateOptionalParams
省略可能なパラメーター
戻り値
Promise<SparkSessionCreateResponse>
Promise<Models.SparkSessionCreateResponseです。>
create(string, string, ExtendedLivySessionRequest, SparkSessionCreateOptionalParams, ServiceCallback<ExtendedLivySessionResponse>)
function create(workspaceName: string, sparkPoolName: string, livyRequest: ExtendedLivySessionRequest, options: SparkSessionCreateOptionalParams, callback: ServiceCallback<ExtendedLivySessionResponse>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- livyRequest
- ExtendedLivySessionRequest
Livy 互換のバッチ ジョブ要求ペイロード。
- options
- SparkSessionCreateOptionalParams
省略可能なパラメーター
- callback
コールバック
createStatement(string, string, number, LivyStatementRequestBody, RequestOptionsBase)
Spark セッション内にステートメントを作成します。
function createStatement(workspaceName: string, sparkPoolName: string, sessionId: number, livyRequest: LivyStatementRequestBody, options?: RequestOptionsBase): Promise<SparkSessionCreateStatementResponse>
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- livyRequest
- LivyStatementRequestBody
Livy 互換のバッチ ジョブ要求ペイロード。
- options
- RequestOptionsBase
省略可能なパラメーター
戻り値
Promise<SparkSessionCreateStatementResponse>
Promise<Models.SparkSessionCreateStatementResponse応答>
createStatement(string, string, number, LivyStatementRequestBody, RequestOptionsBase, ServiceCallback<LivyStatementResponseBody>)
function createStatement(workspaceName: string, sparkPoolName: string, sessionId: number, livyRequest: LivyStatementRequestBody, options: RequestOptionsBase, callback: ServiceCallback<LivyStatementResponseBody>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- livyRequest
- LivyStatementRequestBody
Livy 互換のバッチ ジョブ要求ペイロード。
- options
- RequestOptionsBase
省略可能なパラメーター
- callback
コールバック
createStatement(string, string, number, LivyStatementRequestBody, ServiceCallback<LivyStatementResponseBody>)
function createStatement(workspaceName: string, sparkPoolName: string, sessionId: number, livyRequest: LivyStatementRequestBody, callback: ServiceCallback<LivyStatementResponseBody>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- livyRequest
- LivyStatementRequestBody
Livy 互換のバッチ ジョブ要求ペイロード。
- callback
コールバック
deleteMethod(string, string, number, RequestOptionsBase)
実行中の Spark セッションを取り消します。
function deleteMethod(workspaceName: string, sparkPoolName: string, sessionId: number, options?: RequestOptionsBase): Promise<RestResponse>
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
戻り値
Promise<RestResponse>
Promise<msRest.RestResponse応答>
deleteMethod(string, string, number, RequestOptionsBase, ServiceCallback<void>)
function deleteMethod(workspaceName: string, sparkPoolName: string, sessionId: number, options: RequestOptionsBase, callback: ServiceCallback<void>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
- callback
-
ServiceCallback<void>
コールバック
deleteMethod(string, string, number, ServiceCallback<void>)
function deleteMethod(workspaceName: string, sparkPoolName: string, sessionId: number, callback: ServiceCallback<void>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- callback
-
ServiceCallback<void>
コールバック
deleteStatement(string, string, number, number, RequestOptionsBase)
セッション内のステートメントを強制終了します。
function deleteStatement(workspaceName: string, sparkPoolName: string, sessionId: number, statementId: number, options?: RequestOptionsBase): Promise<SparkSessionDeleteStatementResponse>
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- statementId
-
number
ステートメントの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
戻り値
Promise<SparkSessionDeleteStatementResponse>
Promise<Models.SparkSessionDeleteStatementResponse応答>
deleteStatement(string, string, number, number, RequestOptionsBase, ServiceCallback<LivyStatementCancellationResponse>)
function deleteStatement(workspaceName: string, sparkPoolName: string, sessionId: number, statementId: number, options: RequestOptionsBase, callback: ServiceCallback<LivyStatementCancellationResponse>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- statementId
-
number
ステートメントの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
コールバック
deleteStatement(string, string, number, number, ServiceCallback<LivyStatementCancellationResponse>)
function deleteStatement(workspaceName: string, sparkPoolName: string, sessionId: number, statementId: number, callback: ServiceCallback<LivyStatementCancellationResponse>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- statementId
-
number
ステートメントの識別子。
コールバック
get(string, string, number, ServiceCallback<ExtendedLivySessionResponse>)
function get(workspaceName: string, sparkPoolName: string, sessionId: number, callback: ServiceCallback<ExtendedLivySessionResponse>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- callback
コールバック
get(string, string, number, SparkSessionGetOptionalParams)
1 つの Spark セッションを取得します。
function get(workspaceName: string, sparkPoolName: string, sessionId: number, options?: SparkSessionGetOptionalParams): Promise<SparkSessionGetResponse>
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- options
- SparkSessionGetOptionalParams
省略可能なパラメーター
戻り値
Promise<SparkSessionGetResponse>
Promise<Models.SparkSessionGetResponse>
get(string, string, number, SparkSessionGetOptionalParams, ServiceCallback<ExtendedLivySessionResponse>)
function get(workspaceName: string, sparkPoolName: string, sessionId: number, options: SparkSessionGetOptionalParams, callback: ServiceCallback<ExtendedLivySessionResponse>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- options
- SparkSessionGetOptionalParams
省略可能なパラメーター
- callback
コールバック
getStatement(string, string, number, number, RequestOptionsBase)
Spark セッション内の 1 つのステートメントを取得します。
function getStatement(workspaceName: string, sparkPoolName: string, sessionId: number, statementId: number, options?: RequestOptionsBase): Promise<SparkSessionGetStatementResponse>
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- statementId
-
number
ステートメントの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
戻り値
Promise<SparkSessionGetStatementResponse>
Promise<Models.SparkSessionGetStatementResponse応答>
getStatement(string, string, number, number, RequestOptionsBase, ServiceCallback<LivyStatementResponseBody>)
function getStatement(workspaceName: string, sparkPoolName: string, sessionId: number, statementId: number, options: RequestOptionsBase, callback: ServiceCallback<LivyStatementResponseBody>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- statementId
-
number
ステートメントの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
- callback
コールバック
getStatement(string, string, number, number, ServiceCallback<LivyStatementResponseBody>)
function getStatement(workspaceName: string, sparkPoolName: string, sessionId: number, statementId: number, callback: ServiceCallback<LivyStatementResponseBody>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- statementId
-
number
ステートメントの識別子。
- callback
コールバック
list(string, string, ServiceCallback<ExtendedLivyListSessionResponse>)
function list(workspaceName: string, sparkPoolName: string, callback: ServiceCallback<ExtendedLivyListSessionResponse>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
コールバック
list(string, string, SparkSessionListOptionalParams)
特定の Spark プールで実行されているすべての Spark セッションを一覧表示します。
function list(workspaceName: string, sparkPoolName: string, options?: SparkSessionListOptionalParams): Promise<SparkSessionListResponse>
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- options
- SparkSessionListOptionalParams
省略可能なパラメーター
戻り値
Promise<SparkSessionListResponse>
Promise<Models.SparkSessionListResponse応答>
list(string, string, SparkSessionListOptionalParams, ServiceCallback<ExtendedLivyListSessionResponse>)
function list(workspaceName: string, sparkPoolName: string, options: SparkSessionListOptionalParams, callback: ServiceCallback<ExtendedLivyListSessionResponse>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- options
- SparkSessionListOptionalParams
省略可能なパラメーター
コールバック
listStatements(string, string, number, RequestOptionsBase)
Spark セッション内のステートメントの一覧を取得します。
function listStatements(workspaceName: string, sparkPoolName: string, sessionId: number, options?: RequestOptionsBase): Promise<SparkSessionListStatementsResponse>
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
戻り値
Promise<SparkSessionListStatementsResponse>
Promise<Models.SparkSessionListStatementsResponse応答>
listStatements(string, string, number, RequestOptionsBase, ServiceCallback<LivyStatementsResponseBody>)
function listStatements(workspaceName: string, sparkPoolName: string, sessionId: number, options: RequestOptionsBase, callback: ServiceCallback<LivyStatementsResponseBody>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
- callback
コールバック
listStatements(string, string, number, ServiceCallback<LivyStatementsResponseBody>)
function listStatements(workspaceName: string, sparkPoolName: string, sessionId: number, callback: ServiceCallback<LivyStatementsResponseBody>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- callback
コールバック
resetTimeout(string, string, number, RequestOptionsBase)
セッションタイムアウトをリセットするために、キープアライブ呼び出しを現在のセッションに送信します。
function resetTimeout(workspaceName: string, sparkPoolName: string, sessionId: number, options?: RequestOptionsBase): Promise<RestResponse>
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
戻り値
Promise<RestResponse>
Promise<msRest.RestResponse応答>
resetTimeout(string, string, number, RequestOptionsBase, ServiceCallback<void>)
function resetTimeout(workspaceName: string, sparkPoolName: string, sessionId: number, options: RequestOptionsBase, callback: ServiceCallback<void>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- options
- RequestOptionsBase
省略可能なパラメーター
- callback
-
ServiceCallback<void>
コールバック
resetTimeout(string, string, number, ServiceCallback<void>)
function resetTimeout(workspaceName: string, sparkPoolName: string, sessionId: number, callback: ServiceCallback<void>)
パラメーター
- workspaceName
-
string
操作を実行するワークスペースの名前。
- sparkPoolName
-
string
Spark プールの名前。 "ondemand" は ondemand プールを対象とします。
- sessionId
-
number
セッションの識別子。
- callback
-
ServiceCallback<void>
コールバック