Package com.google.cloud.spanner.spi.v1

Classes

GapicSpannerRpc

Implementation of Cloud Spanner remote calls using Gapic libraries.

SpannerErrorInterceptor

Adds error details to statuses returned by the Cloud Spanner API. TODO(user): Add integration tests to check for error details.

SpannerInterceptorProvider

For internal use only. An interceptor provider that provides a list of grpc interceptors for GapicSpannerRpc to handle logging and error augmentation by intercepting grpc calls.

SpannerRpc.Paginated<T>

Represents results from paginated RPCs, i.e., those where up to a maximum number of items is returned from each call and a followup call must be made to fetch more.

SpannerRpcViews

Interfaces

SpannerRpc

Abstracts remote calls to the Cloud Spanner service. Typically end-consumer code will never use this interface; it's main purpose is to abstract the implementation of the public Cloud Spanner API from the underlying transport mechanism.

Each SpannerRPC instance is bound to a particular project and set of authorization credentials.

The interface is currently defined in terms of the generated HTTP client model classes. This is purely for expedience; a future version of this interface is likely to be independent of transport to allow switching between gRPC and HTTP.

SpannerRpc.ResultStreamConsumer

Consumer for the results produced by a streaming read or query call.

SpannerRpc.StreamingCall

Handle for cancellation of a streaming read or query call.

Enums

SpannerRpc.Option

Options passed in SpannerRpc methods to control how an RPC is issued.