Uses of Interface
com.google.cloud.spanner.Options.QueryOption
Packages that use 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
Subinterfaces of Options.QueryOption in com.google.cloud.spannerModifier and TypeInterfaceDescriptionstatic interfaceMarker interface for options that can be used with both executeQuery and executeUpdate.static interfaceMarker interface to mark options applicable to both Read and Query operationsstatic interfaceMarker interface to mark options applicable to Read, Query, Update and Write operationsMethods in com.google.cloud.spanner with parameters of type Options.QueryOptionModifier 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 ofPartitionto execute a query against the database.static AsyncResultSetResultSets.toAsyncResultSet(com.google.api.core.ApiFuture<ResultSet> delegate, com.google.api.gax.core.ExecutorProvider executorProvider, Options.QueryOption... options) Converts theResultSetthat will be returned by the givenApiFutureto anAsyncResultSetusing the givenExecutorProvider.static AsyncResultSetResultSets.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.QueryOptionModifier and TypeClassDescriptionstatic final classThis 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.QueryOptionModifier 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.