Uses of Interface
com.google.cloud.spanner.ResultSet
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
Internal API for Google Cloud Spanner.
-
Uses of ResultSet in com.google.cloud.spanner
Modifier and TypeInterfaceDescriptioninterface
Interface for result sets returned by async query methods.Modifier and TypeClassDescriptionclass
Forwarding implementation ofAsyncResultSet
that forwards all calls to a delegate.class
Forwarding implementation of ResultSet that forwards all calls to a delegate.Modifier and TypeMethodDescriptionReadContext.analyzeQuery
(Statement statement, ReadContext.QueryAnalyzeMode queryMode) Analyzes a query and returns query plan and/or query execution statistics information.Statement.analyzeQuery
(ReadContext context, ReadContext.QueryAnalyzeMode queryMode) Analyzes the query incontext
.default ResultSet
TransactionContext.analyzeUpdateStatement
(Statement statement, ReadContext.QueryAnalyzeMode analyzeMode, Options.UpdateOption... options) Analyzes a DML statement and returns query plan and statement parameter metadata and optionally execution statistics information.Execute the partition to returnResultSet
.ReadContext.executeQuery
(Statement statement, Options.QueryOption... options) Executes a query against the database.Statement.executeQuery
(ReadContext context, Options.QueryOption... options) Executes the query incontext
.static ResultSet
Creates a pre-populatedResultSet
ReadContext.read
(String table, KeySet keys, Iterable<String> columns, Options.ReadOption... options) Reads zero or more rows from a database.ReadContext.readUsingIndex
(String table, String index, KeySet keys, Iterable<String> columns, Options.ReadOption... options) Reads zero or more rows from a database using an index.Modifier and TypeMethodDescriptionstatic AsyncResultSet
ResultSets.toAsyncResultSet
(ResultSet delegate) Converts the givenResultSet
to anAsyncResultSet
.static AsyncResultSet
ResultSets.toAsyncResultSet
(ResultSet delegate, com.google.api.gax.core.ExecutorProvider executorProvider, Options.QueryOption... options) Modifier and TypeMethodDescriptionstatic AsyncResultSet
ResultSets.toAsyncResultSet
(com.google.api.core.ApiFuture<ResultSet> delegate, com.google.api.gax.core.ExecutorProvider executorProvider, Options.QueryOption... options) Converts theResultSet
that will be returned by the givenApiFuture
to anAsyncResultSet
using the givenExecutorProvider
.ModifierConstructorDescriptionForwardingResultSet
(com.google.common.base.Supplier<ResultSet> supplier) -
Uses of ResultSet in com.google.cloud.spanner.connection
Modifier and TypeInterfaceDescriptioninterface
Result set that is returned for partitioned queries.Modifier and TypeMethodDescriptionConnection.analyzeQuery
(Statement query, ReadContext.QueryAnalyzeMode queryMode) Analyzes a query or a DML statement and returns query plan and/or query execution statistics information.default ResultSet
Connection.analyzeUpdateStatement
(Statement statement, ReadContext.QueryAnalyzeMode analyzeMode, Options.UpdateOption... options) Analyzes a DML statement and returns execution plan, undeclared parameters and optionally execution statistics information.Connection.executeQuery
(Statement query, Options.QueryOption... options) Executes the given statement (a query or a DML statement with returning clause) and returns the result as aResultSet
.StatementResult.getResultSet()
Returns theResultSet
held by this result.Connection.partitionQuery
(Statement query, PartitionOptions partitionOptions, Options.QueryOption... options) Partitions the given query, so it can be executed in parallel.Connection.runPartition
(String encodedPartitionId) Executes the given partition of a query.