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 | Method and Description |
---|---|
Statement |
Statement.Builder.build()
Builds the
Statement . |
static Statement |
Statement.of(String sql)
Creates a
Statement with the given SQL text sql . |
Modifier and Type | Method and Description |
---|---|
ResultSet |
ReadContext.analyzeQuery(Statement statement,
ReadContext.QueryAnalyzeMode queryMode)
Analyzes a query and returns query plan and/or query execution statistics information.
|
default ResultSetStats |
TransactionContext.analyzeUpdate(Statement statement,
ReadContext.QueryAnalyzeMode analyzeMode,
Options.UpdateOption... options)
Analyzes a DML statement and returns query plan and/or execution statistics information.
|
long |
DatabaseClient.executePartitionedUpdate(Statement stmt,
Options.UpdateOption... options)
Returns the lower bound of rows modified by this DML statement.
|
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 . |
long |
TransactionContext.executeUpdate(Statement statement,
Options.UpdateOption... options)
Executes the DML statement(s) and returns the number of rows modified.
|
com.google.api.core.ApiFuture<Long> |
TransactionContext.executeUpdateAsync(Statement statement,
Options.UpdateOption... options)
Same as
#executeUpdate(Statement) , but is guaranteed to be non-blocking. |
List<Partition> |
BatchReadOnlyTransaction.partitionQuery(PartitionOptions partitionOptions,
Statement statement,
Options.QueryOption... options)
Returns a list of
Partition to execute a query against the database. |
Modifier and Type | Method and Description |
---|---|
long[] |
TransactionContext.batchUpdate(Iterable<Statement> statements,
Options.UpdateOption... options)
Executes a list of DML statements in a single request.
|
com.google.api.core.ApiFuture<long[]> |
TransactionContext.batchUpdateAsync(Iterable<Statement> statements,
Options.UpdateOption... options)
Same as
#batchUpdate(Iterable) , but is guaranteed to be non-blocking. |
Modifier and Type | Method and Description |
---|---|
ResultSet |
Connection.analyzeQuery(Statement query,
ReadContext.QueryAnalyzeMode queryMode)
Analyzes a query or a DML statement and returns query plan and/or query execution statistics
information.
|
default ResultSetStats |
Connection.analyzeUpdate(Statement update,
ReadContext.QueryAnalyzeMode analyzeMode)
Analyzes a DML statement and returns query plan and/or execution statistics information.
|
StatementResult |
Connection.execute(Statement statement)
Executes the given statement if allowed in the current
TransactionMode and connection
state. |
AsyncStatementResult |
Connection.executeAsync(Statement statement)
Executes the given statement if allowed in the current
TransactionMode and connection
state asynchronously. |
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 . |
long |
Connection.executeUpdate(Statement update)
Executes the given statement as a DML statement.
|
com.google.api.core.ApiFuture<Long> |
Connection.executeUpdateAsync(Statement update)
Executes the given statement asynchronously as a DML statement.
|
AbstractStatementParser.ParsedStatement |
AbstractStatementParser.parse(Statement statement)
Parses the given statement and categorizes it as one of the possible
AbstractStatementParser.StatementType s. |
Modifier and Type | Method and Description |
---|---|
long[] |
Connection.executeBatchUpdate(Iterable<Statement> updates)
Executes a list of DML statements in a single request.
|
com.google.api.core.ApiFuture<long[]> |
Connection.executeBatchUpdateAsync(Iterable<Statement> updates)
Executes a list of DML statements in a single request.
|
Copyright © 2022 Google LLC. All rights reserved.