public PSSynapseSparkStatement(LivyStatementResponseBody livyStatement)
 {
     this.Id     = livyStatement?.Id;
     this.Code   = livyStatement?.Code;
     this.State  = livyStatement?.State;
     this.Output = new PSLivyStatementOutput(livyStatement?.Output);
 }
Beispiel #2
0
 public LivyStatementResponseBody PollSparkSessionStatement(string workspaceName, string sparkPoolName, int sessionId, LivyStatementResponseBody statement)
 {
     return(Poll(
                statement,
                s => null,
                s => s.State,
                s => this.GetSparkSessionStatement(workspaceName, sparkPoolName, sessionId, s.Id.Value),
                SparkSessionStatementLivyState.ExecutingStates,
                isFinalState: false));
 }
Beispiel #3
0
 public PSSynapseExtendedSparkStatement(LivyStatementResponseBody livyStatement) : base(livyStatement)
 {
     this.ExecutionOutput = GetExecutionOutput(livyStatement?.Output);
 }