Uses of Interface
com.google.cloud.spanner.Options.QueryOption
-
Packages that use Options.QueryOption Package Description com.google.cloud.spanner A client for Cloud Spanner - A no-compromise relational database service.com.google.cloud.spanner.connection Internal API for Google Cloud Spanner. -
-
Uses of Options.QueryOption in com.google.cloud.spanner
Subinterfaces of Options.QueryOption in com.google.cloud.spanner Modifier and Type Interface Description static interface
Options.ReadAndQueryOption
Marker interface to mark options applicable to both Read and Query operationsstatic interface
Options.ReadQueryUpdateTransactionOption
Marker interface to mark options applicable to Read, Query, Update and Write operationsMethods in com.google.cloud.spanner with parameters of type Options.QueryOption Modifier and Type Method Description ResultSet
ReadContext. executeQuery(Statement statement, Options.QueryOption... options)
Executes a query against the database.ResultSet
Statement. executeQuery(ReadContext context, Options.QueryOption... options)
Executes the query incontext
.AsyncResultSet
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
.List<Partition>
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
Classes in com.google.cloud.spanner.connection that implement Options.QueryOption Modifier and Type Class Description static class
Connection.InternalMetadataQuery
This query option is used internally to indicate that a query is executed by the library itself to fetch metadata.Methods in com.google.cloud.spanner.connection with parameters of type Options.QueryOption Modifier and Type Method Description ResultSet
Connection. executeQuery(Statement query, Options.QueryOption... options)
Executes the given statement as a query and returns the result as aResultSet
.AsyncResultSet
Connection. executeQueryAsync(Statement query, Options.QueryOption... options)
Executes the given statement asynchronously as a query and returns the result as anAsyncResultSet
.
-