Package com.google.cloud.spanner
Class ResultSets
- java.lang.Object
-
- com.google.cloud.spanner.ResultSets
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResultSetforRows(Type type, Iterable<Struct> rows)Creates 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 Detail
-
forRows
public static ResultSet forRows(Type type, Iterable<Struct> rows)
Creates a pre-populatedResultSet
-
toAsyncResultSet
public static AsyncResultSet toAsyncResultSet(ResultSet delegate)
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.
-
-