Class ResultSets (6.25.1)

public final class ResultSets

Utility methods for working with com.google.cloud.spanner.ResultSet.

Inheritance

java.lang.Object > ResultSets

Static Methods

forRows(Type type, Iterable<Struct> rows)

public static ResultSet forRows(Type type, Iterable<Struct> rows)

Creates a pre-populated com.google.cloud.spanner.ResultSet

Parameters
NameDescription
typeType

row type of the rows in the returned com.google.cloud.spanner.ResultSet

rowsIterable<Struct>

the rows in the returned com.google.cloud.spanner.ResultSet.

Returns
TypeDescription
ResultSet

toAsyncResultSet(ApiFuture<ResultSet> delegate, ExecutorProvider executorProvider, Options.QueryOption[] options)

public static AsyncResultSet toAsyncResultSet(ApiFuture<ResultSet> delegate, ExecutorProvider executorProvider, Options.QueryOption[] options)

Converts the ResultSet that will be returned by the given ApiFuture to an AsyncResultSet using the given ExecutorProvider.

Parameters
NameDescription
delegateApiFuture<ResultSet>
executorProviderExecutorProvider
optionsQueryOption[]
Returns
TypeDescription
AsyncResultSet

toAsyncResultSet(ResultSet delegate)

public static AsyncResultSet toAsyncResultSet(ResultSet delegate)

Converts the given ResultSet to an AsyncResultSet.

Parameter
NameDescription
delegateResultSet
Returns
TypeDescription
AsyncResultSet

toAsyncResultSet(ResultSet delegate, ExecutorProvider executorProvider, Options.QueryOption[] options)

public static AsyncResultSet toAsyncResultSet(ResultSet delegate, ExecutorProvider executorProvider, Options.QueryOption[] options)

Converts the given ResultSet to an AsyncResultSet using the given ExecutorProvider.

Parameters
NameDescription
delegateResultSet
executorProviderExecutorProvider
optionsQueryOption[]
Returns
TypeDescription
AsyncResultSet