Package com.google.cloud.spanner
package com.google.cloud.spanner
A client for Cloud Spanner - A no-compromise relational database service.
- See Also:
-
ClassDescriptionException thrown by a
Connection
when a database operation detects that a transaction has aborted and an internal retry failed because of a concurrent modification.Exception thrown by Cloud Spanner when an operation detects that a transaction has aborted.GenericAbstractLazyInitializer
for any heavy-weight object that might throw an exception during initialization.Base class for assistingStructReader
implementations.Exception thrown by Cloud Spanner the number of administrative requests per minute has been exceeded.Interface for result sets returned by async query methods.Response code fromtryNext()
.Interface for receiving asynchronous callbacks when new data is ready.Functional interface for executing a read/write transaction asynchronously that returns a result of type R.An interface for managing the life cycle of a read write transaction including all its retries.Each step in a transaction chain is defined by anAsyncTransactionManager.AsyncTransactionFunction
.AsyncTransactionManager.AsyncTransactionStep
is returned byAsyncTransactionManager.TransactionContextFuture.then(AsyncTransactionFunction, Executor)
andAsyncTransactionManager.AsyncTransactionStep.then(AsyncTransactionFunction, Executor)
and allows transaction steps that should be executed serially to be chained together.ApiFuture
that returns the commitTimestamp
of a Cloud Spanner transaction that is executed using anAsyncTransactionManager
.ApiFuture
that returns aTransactionContext
and that supports chaining of multipleAsyncTransactionManager.TransactionContextFuture
s to form a transaction.Represents a Cloud Spanner database backup.Represents an id of a Cloud Spanner backup resource.Represents a Cloud Spanner database backup.State of the backup.Interface for the Batch Client that is used to read data from a Cloud Spanner database.Default implementation for Batch Client interface.BatchReadOnlyTransaction
can be configured to read at timestamps in the past and allows for exporting arbitrarily large amounts of data from Cloud Spanner databases.BatchTransactionId
is unique identifier forBatchReadOnlyTransaction
.Represents a response from a commit operation.Commit statistics are returned by a read/write transaction if specifically requested by passing inOptions.commitStats()
to the transaction.Represents a Cloud Spanner database.Client to do admin operations on a Cloud Spanner Database.Interface for all the APIs that are used to read/write data into a Cloud Spanner database.Represents an id of a Cloud Spanner database resource.Represents a Cloud Spanner database.Represent an updatable field in a Cloud Spanner database.State of the database.Exception thrown by Cloud Spanner when an operation detects that the database that is being used no longer exists.A Cloud Spanner database role.Enumerates the major types of error that the Cloud Spanner service can produce.Forwarding implementation ofAsyncResultSet
that forwards all calls to a delegate.Forwarding implementation of ResultSet that forwards all calls to a delegate.Forwarding implements of StructReaderRepresents a Cloud Spanner Instance.Builder ofInstance
.Client to do admin operations on Cloud Spanner Instance and Instance Configs.Represents a Cloud Spanner instance config.InstanceConfig
adds a layer of service related functionality overInstanceConfigInfo
.Builder ofInstanceConfig
.Returns id of a Cloud Spanner instance config.Represents a Cloud Spanner instance config resource.Builder forInstanceConfigInfo
.Represent an updatable field in Cloud Spanner InstanceConfig.Type of the Instance config.Type of the Instance config.Represents the resource name of a Cloud Spanner Instance.Represents a Cloud Spanner Instance.Builder forInstanceInfo
.Represent an updatable field in Cloud Spanner instance.State of the Instance.Exception thrown by Cloud Spanner when an operation detects that the instance that is being used no longer exists.Represents a row key in a Cloud Spanner table or index.Builder forKey
instances.Represents a range of rows in a table or index.Builder forKeyRange
instances.Defines whether a range includes or excludes its endpoint keys.Defines a collection of Cloud Spanner keys and/or key ranges.Builder forKeySet
instances.Default implementation ofAbstractLazyInitializer
for aSpanner
instance.Represents an individual table modification to be applied to Cloud Spanner.Enumerates the types of mutation that can be applied.Builder forMutation.Op.INSERT
,Mutation.Op.INSERT_OR_UPDATE
,Mutation.Op.UPDATE
, andMutation.Op.REPLACE
mutations.Operation<R,M> Represents a long-running operation.Specifies options for various spanner operationsMarker interface to mark options applicable to operations in admin API.Marker interface to mark options applicable to Create operations in admin API.Marker interface to mark options applicable to Create, Update and Delete operations in admin API.Marker interface to mark options applicable to Delete operations in admin API.Marker interface to mark options applicable to list operations in admin API.Marker interface to mark options applicable to query operation.Marker interface to mark options applicable to both Read and Query operationsMarker interface to mark options applicable to read operationMarker interface to mark options applicable to Read, Query, Update and Write operationsPriority for an RPC invocation.Marker interface to mark options applicable to write operationsMarker interface to mark options applicable to Update operations in admin API.Marker interface to mark options applicable to update operation.Defines the segments of data to be read in a batch read/query context.Defines the configuration for the number and size of partitions returned fromBatchReadOnlyTransaction.partitionRead(com.google.cloud.spanner.PartitionOptions, java.lang.String, com.google.cloud.spanner.KeySet, java.lang.Iterable<java.lang.String>, com.google.cloud.spanner.Options.ReadOption...)
,BatchReadOnlyTransaction.partitionReadUsingIndex(com.google.cloud.spanner.PartitionOptions, java.lang.String, java.lang.String, com.google.cloud.spanner.KeySet, java.lang.Iterable<java.lang.String>, com.google.cloud.spanner.Options.ReadOption...)
andBatchReadOnlyTransaction.partitionQuery(com.google.cloud.spanner.PartitionOptions, com.google.cloud.spanner.Statement, com.google.cloud.spanner.Options.QueryOption...)
Builder forPartitionOptions
instance.A concurrency context in which to run a read or SQL statement.Used to specify the mode in which the query should be analyzed byReadContext.analyzeQuery(Statement,QueryAnalyzeMode)
.A transaction type that provides guaranteed consistency across several reads, but does not allow writes.Represents a Cloud Spanner replica information.Indicates the type of the replica.Represents a restore operation of a Cloud Spanner backup.Represents the restore information of a Cloud Spanner database.Source of the restore information.Provides access to the data returned by a Cloud Spanner read or query.Utility methods for working withResultSet
.ASession
can be used to perform transactions that read and/or modify data in a Cloud Spanner database.Exception thrown by Cloud Spanner when an operation detects that the session that is being used is no longer valid.Options for the session pool used byDatabaseClient
.Builder for creating SessionPoolOptions.An interface for Cloud Spanner.Base exception type for all exceptions produced by the Cloud Spanner service.Base exception type for NOT_FOUND exceptions for known resource types.A factory for creating instances ofSpannerException
and its subtypes.Factory to create instance ofSpanner
.Options for the Cloud Spanner service.Builder forSpannerOptions
instances.SpannerOptions.CallContextConfigurator
can be used to modify theApiCallContext
for one or more specific RPCs.Interface that can be used to provideCallCredentials
toSpannerOptions
.ExecutorProvider
that is used forAsyncResultSet
.Implementation ofSpannerOptions.CloseableExecutorProvider
that uses a fixed singleScheduledExecutorService
.Helper class to configure timeouts for specific Spanner RPCs.The environment to read configuration values from.A SQL statement and optional bound parameters that can be executed in aReadContext
.Builder forStatement
.Represents a non-NULL
value ofType.Code.STRUCT
.Builder for constructing non-NULL
Struct
instances.A base interface for reading the fields of aSTRUCT
.Defines how Cloud Spanner will choose a timestamp for a read-only transaction or a single read/query.The type of timestamp bound.Context for a single attempt of a locking read-write transaction.An interface for managing the life cycle of a read write transaction including all its retries.State of the transaction manager.An interface for executing a body of work in the context of a read-write transaction, with retries for transaction aborts.A unit of work to be performed in the context of a transaction.Describes a type in the Cloud Spanner type system.Enumerates the categories of types.Describes an individual field in aSTRUCT type
.Represents a value to be consumed by the Cloud Spanner API.ValueBinder<R>An interface for binding aValue
in some context.