Class ResultSets (6.69.0)

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
Name Description
type Type

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

rows Iterable<Struct>

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

Returns
Type Description
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
Name Description
delegate ApiFuture<ResultSet>
executorProvider ExecutorProvider
options QueryOption[]
Returns
Type Description
AsyncResultSet

toAsyncResultSet(ResultSet delegate)

public static AsyncResultSet toAsyncResultSet(ResultSet delegate)

Converts the given ResultSet to an AsyncResultSet.

Parameter
Name Description
delegate ResultSet
Returns
Type Description
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
Name Description
delegate ResultSet
executorProvider ExecutorProvider
options QueryOption[]
Returns
Type Description
AsyncResultSet