public PSSynapseSparkStatement(LivyStatementResponseBody livyStatement) { this.Id = livyStatement?.Id; this.Code = livyStatement?.Code; this.State = livyStatement?.State; this.Output = new PSLivyStatementOutput(livyStatement?.Output); }
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)); }
public PSSynapseExtendedSparkStatement(LivyStatementResponseBody livyStatement) : base(livyStatement) { this.ExecutionOutput = GetExecutionOutput(livyStatement?.Output); }