Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Method and Description |
---|---|
SpannerOptions.Builder |
SpannerOptions.Builder.disableGrpcGcpExtension()
Disables gRPC-GCP extension.
|
SpannerOptions.Builder |
SpannerOptions.Builder.enableGrpcGcpExtension()
Enables gRPC-GCP extension with the default settings.
|
SpannerOptions.Builder |
SpannerOptions.Builder.enableGrpcGcpExtension(com.google.cloud.grpc.GcpManagedChannelOptions options)
Enables gRPC-GCP extension and uses provided options for configuration.
|
static SpannerOptions.Builder |
SpannerOptions.newBuilder() |
SpannerOptions.Builder |
SpannerOptions.Builder.setAsyncExecutorProvider(SpannerOptions.CloseableExecutorProvider provider)
Sets the
ExecutorProvider to use for high-level async calls that need an executor,
such as fetching results for an AsyncResultSet . |
SpannerOptions.Builder |
SpannerOptions.Builder.setAutoThrottleAdministrativeRequests()
Instructs the client library to automatically throttle the number of administrative requests
if the rate of administrative requests generated by this
Spanner instance will exceed
the administrative limits Cloud Spanner. |
SpannerOptions.Builder |
SpannerOptions.Builder.setCallCredentialsProvider(SpannerOptions.CallCredentialsProvider callCredentialsProvider)
Sets a
SpannerOptions.CallCredentialsProvider that can deliver CallCredentials to use on a
per-gRPC basis. |
SpannerOptions.Builder |
SpannerOptions.Builder.setChannelConfigurator(com.google.api.core.ApiFunction<ManagedChannelBuilder,ManagedChannelBuilder> channelConfigurator)
Sets an
ApiFunction that will be used to configure the transport channel. |
SpannerOptions.Builder |
SpannerOptions.Builder.setChannelProvider(TransportChannelProvider channelProvider)
Sets the
ChannelProvider . |
SpannerOptions.Builder |
SpannerOptions.Builder.setCompressorName(String compressorName)
Sets the compression to use for all gRPC calls.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setDefaultQueryOptions(DatabaseId database,
ExecuteSqlRequest.QueryOptions defaultQueryOptions)
Sets the default
ExecuteSqlRequest.QueryOptions that will be used for all queries on the specified
database. |
SpannerOptions.Builder |
SpannerOptions.Builder.setEmulatorHost(String emulatorHost)
Sets the host of an emulator to use.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setHost(String host) |
SpannerOptions.Builder |
SpannerOptions.Builder.setInterceptorProvider(GrpcInterceptorProvider interceptorProvider)
Sets the
GrpcInterceptorProvider . |
SpannerOptions.Builder |
SpannerOptions.Builder.setNumChannels(int numChannels)
Sets the number of gRPC channels to use.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setPartitionedDmlTimeout(org.threeten.bp.Duration timeout)
Sets a timeout specifically for Partitioned DML statements executed through
DatabaseClient#executePartitionedUpdate(Statement) . |
SpannerOptions.Builder |
SpannerOptions.Builder.setPrefetchChunks(int prefetchChunks)
Specifying this will allow the client to prefetch up to
prefetchChunks PartialResultSet chunks for each read and query. |
SpannerOptions.Builder |
SpannerOptions.Builder.setRetrySettings(RetrySettings retrySettings)
SpannerOptions.Builder does not support global retry settings, as it creates three
different gRPC clients: Spanner , DatabaseAdminClient and InstanceAdminClient . |
SpannerOptions.Builder |
SpannerOptions.Builder.setSessionLabels(Map<String,String> sessionLabels)
Sets the labels to add to all Sessions created in this client.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setSessionPoolOption(SessionPoolOptions sessionPoolOptions)
Sets the options for managing the session pool.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setTrackTransactionStarter()
Instructs the client library to track the first request of each read/write transaction.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions transportOptions) |
SpannerOptions.Builder |
SpannerOptions.toBuilder() |
Copyright © 2022 Google LLC. All rights reserved.