Package com.google.cloud.spanner
Class ResultSets
java.lang.Object
com.google.cloud.spanner.ResultSets
Utility methods for working with
ResultSet.-
Method Summary
Modifier and TypeMethodDescriptionstatic ResultSetCreates a pre-populatedResultSetstatic AsyncResultSettoAsyncResultSet(com.google.api.core.ApiFuture<ResultSet> delegate, com.google.api.gax.core.ExecutorProvider executorProvider, Options.QueryOption... options) Converts theResultSetthat will be returned by the givenApiFutureto anAsyncResultSetusing the givenExecutorProvider.static AsyncResultSettoAsyncResultSet(ResultSet delegate) Converts the givenResultSetto anAsyncResultSet.static AsyncResultSettoAsyncResultSet(ResultSet delegate, com.google.api.gax.core.ExecutorProvider executorProvider, Options.QueryOption... options)
-
Method Details
-
forRows
Creates a pre-populatedResultSet -
toAsyncResultSet
Converts the givenResultSetto anAsyncResultSet. -
toAsyncResultSet
public static AsyncResultSet toAsyncResultSet(ResultSet delegate, com.google.api.gax.core.ExecutorProvider executorProvider, Options.QueryOption... options) -
toAsyncResultSet
public static AsyncResultSet toAsyncResultSet(com.google.api.core.ApiFuture<ResultSet> delegate, com.google.api.gax.core.ExecutorProvider executorProvider, Options.QueryOption... options) Converts theResultSetthat will be returned by the givenApiFutureto anAsyncResultSetusing the givenExecutorProvider.
-