internal SparkSessionOperation(SparkSessionClient client, ClientDiagnostics diagnostics, Response <SparkSession> response) { _client = client; _value = response.Value ?? throw new InvalidOperationException("The response does not contain a value."); _response = response; _diagnostics = diagnostics; }
internal SparkSessionOperation(SparkSessionClient client, ClientDiagnostics diagnostics, Response <SparkSession> response) : this(response.Value.Id, client) { _rawResponse = response.GetRawResponse(); _diagnostics = diagnostics; }
/// <summary> /// Initializes a new instance of the <see cref="SparkSessionOperation"/> class. /// </summary> /// <param name="sessionId">The ID of the Spark session.</param> /// <param name="client">The client used to check for completion.</param> public SparkSessionOperation(int sessionId, SparkSessionClient client) { _sessionId = sessionId; _client = client; }
internal SparkStatementOperation(SparkSessionClient client, ClientDiagnostics diagnostics, Response <SparkStatement> response, int sessionId) : this(sessionId, response.Value.Id, client) { _rawResponse = response.GetRawResponse(); _diagnostics = diagnostics; }
/// <summary> /// Initializes a new instance of the <see cref="SparkStatementOperation"/> class. /// </summary> /// <param name="sessionId">The ID of the Spark session where the statement executes.</param> /// <param name="statementId">The ID of the Spark statement.</param> /// <param name="client">The client used to check for completion.</param> public SparkStatementOperation(int sessionId, int statementId, SparkSessionClient client) { _sessionId = sessionId; _statementId = statementId; _client = client; }