Package com.google.cloud.bigtable.data.v2.stub (2.9.0)

Classes

BigtableBatchingCallSettings

This settings holds the batching thresholds as well as retry configuration.

Sample configuration:


 BigtableBatchingCallSettings defaultBatchingCallSettings =
     bigtableDataCallSettings.getStubSettings().bulkMutateRowsSettings();

 BigtableBatchingCallSettings customBatchingCallSettings = defaultBatchingCallSettings.toBuilder()
     .setBatchingSettings(
         defaultBatchingCallSettings.getBatchingSettings().toBuilder()
             .setDelayThreshold(Duration.ofSeconds(10))
             .build())
     .setRetryableCodes(Code.DEADLINE_EXCEEDED)
     .setLatencyBasedThrottling(true, 1000L)
     .build();
 

See Also: RetrySettingsfor retry configuration., BatchingSettingsfor batching thresholds explantion.

BigtableBatchingCallSettings.Builder

A base builder class for BigtableBatchingCallSettings. See the class documentation of BigtableBatchingCallSettings for a description of the different values that can be set.

BigtableBulkReadRowsCallSettings

This settings holds the batching thresholds as well as retry configuration for bulk read API.

Sample configuration:


 BigtableBulkReadRowsCallSettings defaultBulkReadCallSettings =
     bigtableDataCallSettings.getStubSettings().bulkReadRowsSettings();

 BigtableBulkReadRowsCallSettings customBulkReadCallSettings = defaultBulkReadCallSettings
     .toBuilder()
     .setBatchingSettings(
         defaultBulkReadCallSettings.getBatchingSettings().toBuilder()
             .setDelayThreshold(Duration.ofSeconds(10))
             .build())
     .setRetryableCodes(Code.DEADLINE_EXCEEDED)
     .build();
 

See Also: RetrySettingsfor retry configuration., BatchingSettingsfor batching thresholds explantion.

BigtableBulkReadRowsCallSettings.Builder

EnhancedBigtableStubSettings

Settings class to configure an instance of EnhancedBigtableStub.

Sane defaults are provided for most settings:

  • The default service address (bigtable.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The only required setting is the instance name.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.


 BigtableDataSettings.Builder settingsBuilder = BigtableDataSettings.newBuilder()
   .setProjectId("my-project-id")
   .setInstanceId("my-instance-id")
   .setAppProfileId("default");

 settingsBuilder.readRowsSettings()
  .setRetryableCodes(Code.DEADLINE_EXCEEDED, Code.UNAVAILABLE);

 BigtableDataSettings settings = builder.build();
 

EnhancedBigtableStubSettings.Builder

Builder for BigtableDataSettings.