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
Connectionwhen 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.GenericAbstractLazyInitializerfor any heavy-weight object that might throw an exception during initialization.Base class for assistingStructReaderimplementations.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.AsyncTransactionStepis returned byAsyncTransactionManager.TransactionContextFuture.then(AsyncTransactionFunction, Executor)andAsyncTransactionManager.AsyncTransactionStep.then(AsyncTransactionFunction, Executor)and allows transaction steps that should be executed serially to be chained together.ApiFuturethat returns the commitTimestampof a Cloud Spanner transaction that is executed using anAsyncTransactionManager.ApiFuturethat returns aTransactionContextand that supports chaining of multipleAsyncTransactionManager.TransactionContextFutures 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.BatchReadOnlyTransactioncan be configured to read at timestamps in the past and allows for exporting arbitrarily large amounts of data from Cloud Spanner databases.BatchTransactionIdis 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.Specifies how and when to decode a value from protobuf to a plain Java object.Enumerates the major types of error that the Cloud Spanner service can produce.Forwarding implementation ofAsyncResultSetthat 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.InstanceConfigadds 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 forKeyinstances.Represents a range of rows in a table or index.Builder forKeyRangeinstances.Defines whether a range includes or excludes its endpoint keys.Defines a collection of Cloud Spanner keys and/or key ranges.Builder forKeySetinstances.Default implementation ofAbstractLazyInitializerfor aSpannerinstance.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.REPLACEmutations.Represents a group of Cloud Spanner mutations to be committed together.Keys for OpenTelemetry context variables that are used by the Spanner client library.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 operationsOrderBy for an RPC invocation.Priority 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.Marker interface to mark options applicable to Update and Write operationsDefines 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 forPartitionOptionsinstance.Interface forResultSets that can return a protobuf value.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.ASessioncan 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 ofSpannerExceptionand its subtypes.Factory to create instance ofSpanner.Options for the Cloud Spanner service.Builder forSpannerOptionsinstances.SpannerOptions.CallContextConfiguratorcan be used to modify theApiCallContextfor one or more specific RPCs.Interface that can be used to provideCallCredentialstoSpannerOptions.ExecutorProviderthat is used forAsyncResultSet.Implementation ofSpannerOptions.CloseableExecutorProviderthat 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-NULLvalue ofType.Code.STRUCT.Builder for constructing non-NULLStructinstances.A base interface for reading the fields of aSTRUCT.Utility class for creating a thread factory for daemon or virtual threads.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 aValuein some context.