Uses of Interface
com.google.cloud.spanner.Options.QueryOption
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
Internal API for Google Cloud Spanner.
-
Uses of Options.QueryOption in com.google.cloud.spanner
Modifier and TypeInterfaceDescriptionstatic interface
Marker interface to mark options applicable to both Read and Query operationsstatic interface
Marker interface to mark options applicable to Read, Query, Update and Write operationsModifier and TypeMethodDescriptionReadContext.executeQuery
(Statement statement, Options.QueryOption... options) Executes a query against the database.Statement.executeQuery
(ReadContext context, Options.QueryOption... options) Executes the query incontext
.ReadContext.executeQueryAsync
(Statement statement, Options.QueryOption... options) Same asReadContext.executeQuery(Statement, QueryOption...)
, but is guaranteed to be non-blocking and returns its results as anAsyncResultSet
.BatchReadOnlyTransaction.partitionQuery
(PartitionOptions partitionOptions, Statement statement, Options.QueryOption... options) Returns a list ofPartition
to execute a query against the database.static 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
.static AsyncResultSet
ResultSets.toAsyncResultSet
(ResultSet delegate, com.google.api.gax.core.ExecutorProvider executorProvider, Options.QueryOption... options) -
Uses of Options.QueryOption in com.google.cloud.spanner.connection
Modifier and TypeClassDescriptionstatic final class
This query option is used internally to indicate that a query is executed by the library itself to fetch metadata.Modifier and TypeMethodDescriptionConnection.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
.Connection.executeQueryAsync
(Statement query, Options.QueryOption... options) Executes the given statement (a query or a DML statement with returning clause) asynchronously and returns the result as anAsyncResultSet
.Connection.partitionQuery
(Statement query, PartitionOptions partitionOptions, Options.QueryOption... options) Partitions the given query, so it can be executed in parallel.Connection.runPartitionedQuery
(Statement query, PartitionOptions partitionOptions, Options.QueryOption... options) Executes the given query as a partitioned query.