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.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
Options.ReadAndQueryOption
Marker interface to mark options applicable to both Read and Query operations
|
static interface |
Options.ReadQueryUpdateTransactionOption
Marker interface to mark options applicable to Read, Query, Update and Write operations
|
Modifier and Type | Method and Description |
---|---|
ResultSet |
Statement.executeQuery(ReadContext context,
Options.QueryOption... options)
Executes the query in
context . |
ResultSet |
ReadContext.executeQuery(Statement statement,
Options.QueryOption... options)
Executes a query against the database.
|
AsyncResultSet |
ReadContext.executeQueryAsync(Statement statement,
Options.QueryOption... options)
Same as
#executeQuery(Statement, QueryOption...) , but is guaranteed to be non-blocking
and returns its results as an AsyncResultSet . |
List<Partition> |
BatchReadOnlyTransaction.partitionQuery(PartitionOptions partitionOptions,
Statement statement,
Options.QueryOption... options)
Returns a list of
Partition 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 the
ResultSet that will be returned by the given ApiFuture to an
AsyncResultSet using the given ExecutorProvider . |
static AsyncResultSet |
ResultSets.toAsyncResultSet(ResultSet delegate,
com.google.api.gax.core.ExecutorProvider executorProvider,
Options.QueryOption... options)
|
Modifier and Type | Class and 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.
|
Modifier and Type | Method and Description |
---|---|
ResultSet |
Connection.executeQuery(Statement query,
Options.QueryOption... options)
Executes the given statement as a query and returns the result as a
ResultSet . |
AsyncResultSet |
Connection.executeQueryAsync(Statement query,
Options.QueryOption... options)
Executes the given statement asynchronously as a query and returns the result as an
AsyncResultSet . |
Copyright © 2022 Google LLC. All rights reserved.