Interface AsyncStatementResult
- All Superinterfaces:
StatementResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.cloud.spanner.connection.StatementResult
StatementResult.ClientSideStatementType, StatementResult.ResultType
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.core.ApiFuture<Void>
Returns a future that tracks the progress of a statement that returns no result.Returns theAsyncResultSet
held by this result.com.google.api.core.ApiFuture<Long>
Returns the update count held by this result.Methods inherited from interface com.google.cloud.spanner.connection.StatementResult
getClientSideStatementType, getResultSet, getResultType, getUpdateCount
-
Method Details
-
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.
-