Interface AsyncStatementResult
-
- All Superinterfaces:
StatementResult
@InternalApi public interface AsyncStatementResult extends StatementResult
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.cloud.spanner.connection.StatementResult
StatementResult.ClientSideStatementType, StatementResult.ResultType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.api.core.ApiFuture<Void>
getNoResultAsync()
Returns a future that tracks the progress of a statement that returns no result.AsyncResultSet
getResultSetAsync()
Returns theAsyncResultSet
held by this result.com.google.api.core.ApiFuture<Long>
getUpdateCountAsync()
Returns the update count held by this result.-
Methods inherited from interface com.google.cloud.spanner.connection.StatementResult
getClientSideStatementType, getResultSet, getResultType, getUpdateCount
-
-
-
-
Method Detail
-
getResultSetAsync
AsyncResultSet getResultSetAsync()
Returns theAsyncResultSet
held by this result. May only be called if the type of this result isStatementResult.ResultType.RESULT_SET
.- Returns:
- the
AsyncResultSet
held by this result.
-
getUpdateCountAsync
com.google.api.core.ApiFuture<Long> getUpdateCountAsync()
Returns the update count held by this result. May only be called if the type of this result isStatementResult.ResultType.UPDATE_COUNT
.- Returns:
- the update count held by this result.
-
getNoResultAsync
com.google.api.core.ApiFuture<Void> getNoResultAsync()
Returns a future that tracks the progress of a statement that returns no result. This could be a DDL statement or a client side statement that does not return a result.
-
-