public class BigtableDataSettings extends com.google.api.gax.rpc.ClientSettings<BigtableDataSettings>
BigtableDataClient.
Sane defaults are provided for most settings:
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()
.setInstanceName(InstanceName.of("my-project", "my-instance-id"))
.setAppProfileId("default");
settingsBuilder.readRowsSettings().setRetryableCodes(Code.DEADLINE_EXCEEDED, Code.UNAVAILABLE);
BigtableDataSettings settings = builder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
BigtableDataSettings.Builder
Builder for BigtableDataSettings.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.rpc.BatchingCallSettings<RowMutation,Void> |
bulkMutationsSettings()
Returns the object with the settings used for BulkMutations.
|
com.google.api.gax.rpc.UnaryCallSettings<ConditionalRowMutation,Boolean> |
checkAndMutateRowSettings()
Returns the object with the settings used for calls to checkAndMutateRow.
|
String |
getAppProfileId()
Returns the configured AppProfile to use
|
InstanceName |
getInstanceName()
Returns the target instance
|
com.google.api.gax.rpc.UnaryCallSettings<RowMutation,Void> |
mutateRowSettings()
Returns the object with the settings used for calls to MutateRow.
|
static BigtableDataSettings.Builder |
newBuilder()
Create a new builder.
|
com.google.api.gax.rpc.UnaryCallSettings<ReadModifyWriteRow,Row> |
readModifyWriteRowSettings()
Returns the object with the settings used for calls to ReadModifyWriteRow.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<Query,Row> |
readRowsSettings()
Returns the object with the settings used for calls to ReadRows.
|
com.google.api.gax.rpc.UnaryCallSettings<String,List<KeyOffset>> |
sampleRowKeysSettings()
Returns the object with the settings used for calls to sampleRowKeys.
|
BigtableDataSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
public static BigtableDataSettings.Builder newBuilder()
public InstanceName getInstanceName()
public String getAppProfileId()
public com.google.api.gax.rpc.ServerStreamingCallSettings<Query,Row> readRowsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<String,List<KeyOffset>> sampleRowKeysSettings()
public com.google.api.gax.rpc.UnaryCallSettings<RowMutation,Void> mutateRowSettings()
public com.google.api.gax.rpc.BatchingCallSettings<RowMutation,Void> bulkMutationsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ConditionalRowMutation,Boolean> checkAndMutateRowSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ReadModifyWriteRow,Row> readModifyWriteRowSettings()
public BigtableDataSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.ClientSettings<BigtableDataSettings>Copyright © 2018 Google LLC. All rights reserved.