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 interfaceOptions.ReadAndQueryOptionMarker interface to mark options applicable to both Read and Query operationsstatic interfaceOptions.ReadQueryUpdateTransactionOptionMarker 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 ResultSetReadContext. executeQuery(Statement statement, Options.QueryOption... options)Executes a query against the database.ResultSetStatement. executeQuery(ReadContext context, Options.QueryOption... options)Executes the query incontext.AsyncResultSetReadContext. 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 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.QueryOption Modifier and Type Class Description static classConnection.InternalMetadataQueryThis 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 ResultSetConnection. 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.AsyncResultSetConnection. 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.
-