public abstract class SpannerConfig
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SpannerConfig.Builder
Builder for
SpannerConfig . |
Constructor and Description |
---|
SpannerConfig() |
Modifier and Type | Method and Description |
---|---|
static SpannerConfig |
create() |
abstract @Nullable ValueProvider<Duration> |
getCommitDeadline() |
abstract @Nullable com.google.api.gax.retrying.RetrySettings |
getCommitRetrySettings() |
abstract @Nullable ValueProvider<java.lang.String> |
getDatabaseId() |
abstract @Nullable ValueProvider<java.lang.String> |
getDatabaseRole() |
abstract @Nullable ValueProvider<java.lang.Boolean> |
getDataBoostEnabled() |
abstract @Nullable ValueProvider<java.lang.String> |
getEmulatorHost() |
abstract @Nullable com.google.api.gax.retrying.RetrySettings |
getExecuteStreamingSqlRetrySettings() |
abstract @Nullable ValueProvider<java.lang.String> |
getHost() |
abstract @Nullable ValueProvider<java.lang.String> |
getInstanceId() |
abstract @Nullable ValueProvider<java.lang.Boolean> |
getIsLocalChannelProvider() |
abstract @Nullable ValueProvider<Duration> |
getMaxCumulativeBackoff() |
abstract @Nullable ValueProvider<Duration> |
getPartitionQueryTimeout() |
abstract @Nullable ValueProvider<Duration> |
getPartitionReadTimeout() |
abstract @Nullable ValueProvider<java.lang.String> |
getProjectId() |
abstract @Nullable org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.ImmutableSet<com.google.api.gax.rpc.StatusCode.Code> |
getRetryableCodes() |
abstract @Nullable ValueProvider<com.google.cloud.spanner.Options.RpcPriority> |
getRpcPriority() |
void |
populateDisplayData(DisplayData.Builder builder) |
void |
validate() |
SpannerConfig |
withCommitDeadline(Duration commitDeadline)
Specifies the commit deadline.
|
SpannerConfig |
withCommitDeadline(ValueProvider<Duration> commitDeadline)
Specifies the commit deadline.
|
SpannerConfig |
withCommitRetrySettings(com.google.api.gax.retrying.RetrySettings commitRetrySettings)
Specifies the commit retry settings.
|
SpannerConfig |
withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database ID.
|
SpannerConfig |
withDatabaseId(ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database ID.
|
SpannerConfig |
withDatabaseRole(ValueProvider<java.lang.String> databaseRole)
Specifies the Cloud Spanner database role.
|
SpannerConfig |
withDataBoostEnabled(ValueProvider<java.lang.Boolean> dataBoostEnabled)
Specifies if the pipeline has to be run on the independent compute resource.
|
SpannerConfig |
withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner host, when an emulator is used.
|
SpannerConfig |
withExecuteStreamingSqlRetrySettings(com.google.api.gax.retrying.RetrySettings executeStreamingSqlRetrySettings)
Specifies the ExecuteStreamingSql retry settings.
|
SpannerConfig |
withHost(ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.
|
SpannerConfig |
withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance ID.
|
SpannerConfig |
withInstanceId(ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance ID.
|
SpannerConfig |
withIsLocalChannelProvider(ValueProvider<java.lang.Boolean> isLocalChannelProvider)
Specifies whether a local channel provider should be used.
|
SpannerConfig |
withMaxCumulativeBackoff(Duration maxCumulativeBackoff)
Specifies the maximum cumulative backoff.
|
SpannerConfig |
withMaxCumulativeBackoff(ValueProvider<Duration> maxCumulativeBackoff)
Specifies the maximum cumulative backoff.
|
SpannerConfig |
withPartitionQueryTimeout(Duration partitionQueryTimeout)
Specifies the PartitionQuery timeout.
|
SpannerConfig |
withPartitionQueryTimeout(ValueProvider<Duration> partitionQueryTimeout)
Specifies the PartitionQuery timeout.
|
SpannerConfig |
withPartitionReadTimeout(Duration partitionReadTimeout)
Specifies the PartitionRead timeout.
|
SpannerConfig |
withPartitionReadTimeout(ValueProvider<Duration> partitionReadTimeout)
Specifies the PartitionRead timeout.
|
SpannerConfig |
withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project ID.
|
SpannerConfig |
withProjectId(ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project ID.
|
SpannerConfig |
withRetryableCodes(org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.ImmutableSet<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
Specifies the errors that will be retried by the client library for all operations.
|
SpannerConfig |
withRpcPriority(com.google.cloud.spanner.Options.RpcPriority rpcPriority)
Specifies the RPC priority.
|
SpannerConfig |
withRpcPriority(ValueProvider<com.google.cloud.spanner.Options.RpcPriority> rpcPriority)
Specifies the RPC priority.
|
public abstract @Nullable ValueProvider<java.lang.String> getProjectId()
public abstract @Nullable ValueProvider<java.lang.String> getInstanceId()
public abstract @Nullable ValueProvider<java.lang.String> getDatabaseId()
public abstract @Nullable ValueProvider<java.lang.String> getHost()
public abstract @Nullable ValueProvider<java.lang.String> getEmulatorHost()
public abstract @Nullable ValueProvider<java.lang.Boolean> getIsLocalChannelProvider()
public abstract @Nullable ValueProvider<Duration> getCommitDeadline()
public abstract @Nullable ValueProvider<Duration> getMaxCumulativeBackoff()
public abstract @Nullable com.google.api.gax.retrying.RetrySettings getExecuteStreamingSqlRetrySettings()
public abstract @Nullable com.google.api.gax.retrying.RetrySettings getCommitRetrySettings()
public abstract @Nullable org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.ImmutableSet<com.google.api.gax.rpc.StatusCode.Code> getRetryableCodes()
public abstract @Nullable ValueProvider<com.google.cloud.spanner.Options.RpcPriority> getRpcPriority()
public abstract @Nullable ValueProvider<java.lang.String> getDatabaseRole()
public abstract @Nullable ValueProvider<Duration> getPartitionQueryTimeout()
public abstract @Nullable ValueProvider<Duration> getPartitionReadTimeout()
public abstract @Nullable ValueProvider<java.lang.Boolean> getDataBoostEnabled()
public static SpannerConfig create()
public void validate()
public void populateDisplayData(DisplayData.Builder builder)
public SpannerConfig withProjectId(ValueProvider<java.lang.String> projectId)
public SpannerConfig withProjectId(java.lang.String projectId)
public SpannerConfig withInstanceId(ValueProvider<java.lang.String> instanceId)
public SpannerConfig withInstanceId(java.lang.String instanceId)
public SpannerConfig withDatabaseId(ValueProvider<java.lang.String> databaseId)
public SpannerConfig withDatabaseId(java.lang.String databaseId)
public SpannerConfig withHost(ValueProvider<java.lang.String> host)
public SpannerConfig withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
public SpannerConfig withIsLocalChannelProvider(ValueProvider<java.lang.Boolean> isLocalChannelProvider)
public SpannerConfig withCommitDeadline(Duration commitDeadline)
public SpannerConfig withCommitDeadline(ValueProvider<Duration> commitDeadline)
public SpannerConfig withMaxCumulativeBackoff(Duration maxCumulativeBackoff)
public SpannerConfig withMaxCumulativeBackoff(ValueProvider<Duration> maxCumulativeBackoff)
public SpannerConfig withExecuteStreamingSqlRetrySettings(com.google.api.gax.retrying.RetrySettings executeStreamingSqlRetrySettings)
public SpannerConfig withCommitRetrySettings(com.google.api.gax.retrying.RetrySettings commitRetrySettings)
public SpannerConfig withRetryableCodes(org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.ImmutableSet<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
public SpannerConfig withRpcPriority(com.google.cloud.spanner.Options.RpcPriority rpcPriority)
public SpannerConfig withRpcPriority(ValueProvider<com.google.cloud.spanner.Options.RpcPriority> rpcPriority)
public SpannerConfig withDatabaseRole(ValueProvider<java.lang.String> databaseRole)
public SpannerConfig withDataBoostEnabled(ValueProvider<java.lang.Boolean> dataBoostEnabled)
public SpannerConfig withPartitionQueryTimeout(Duration partitionQueryTimeout)
public SpannerConfig withPartitionQueryTimeout(ValueProvider<Duration> partitionQueryTimeout)
public SpannerConfig withPartitionReadTimeout(Duration partitionReadTimeout)
public SpannerConfig withPartitionReadTimeout(ValueProvider<Duration> partitionReadTimeout)