com.google.cloud.bigtable.config
Class BulkOptions.Builder
- java.lang.Object
-
- com.google.cloud.bigtable.config.BulkOptions.Builder
-
- Enclosing class:
- BulkOptions
public static class BulkOptions.Builder extends Object
A mutable builder for BigtableConnectionOptions.
-
-
Constructor Summary
Constructors Constructor and Description Builder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description BulkOptions
build()
BulkOptions.Builder
enableBulkMutationThrottling()
Enable an experimental feature that will throttle requests fromBulkMutation
if request latency surpasses a latency threshold.BulkOptions.Builder
setAsyncMutatorWorkerCount(int asyncMutatorCount)
BulkOptions.Builder
setAutoflushMs(long autoflushMs)
BulkOptions.Builder
setBulkMaxRequestSize(long bulkMaxRequestSize)
BulkOptions.Builder
setBulkMaxRowKeyCount(int bulkMaxRowKeyCount)
BulkOptions.Builder
setBulkMutationRpcTargetMs(int bulkMutationRpcTargetMs)
BulkOptions.Builder
setMaxInflightRpcs(int maxInflightRpcs)
BulkOptions.Builder
setMaxMemory(long maxMemory)
BulkOptions.Builder
setUseBulkApi(boolean useBulkApi)
-
-
-
Constructor Detail
-
Builder
@Deprecated public Builder()
Deprecated.
-
-
Method Detail
-
setAsyncMutatorWorkerCount
public BulkOptions.Builder setAsyncMutatorWorkerCount(int asyncMutatorCount)
-
setUseBulkApi
public BulkOptions.Builder setUseBulkApi(boolean useBulkApi)
-
setBulkMaxRowKeyCount
public BulkOptions.Builder setBulkMaxRowKeyCount(int bulkMaxRowKeyCount)
-
setBulkMaxRequestSize
public BulkOptions.Builder setBulkMaxRequestSize(long bulkMaxRequestSize)
-
setAutoflushMs
public BulkOptions.Builder setAutoflushMs(long autoflushMs)
-
setMaxInflightRpcs
public BulkOptions.Builder setMaxInflightRpcs(int maxInflightRpcs)
-
setMaxMemory
public BulkOptions.Builder setMaxMemory(long maxMemory)
-
enableBulkMutationThrottling
public BulkOptions.Builder enableBulkMutationThrottling()
Enable an experimental feature that will throttle requests fromBulkMutation
if request latency surpasses a latency threshold. The default isBulkOptions.BIGTABLE_BULK_THROTTLE_TARGET_MS_DEFAULT
.- Returns:
- a
BulkOptions.Builder
object, for convenience.
-
setBulkMutationRpcTargetMs
public BulkOptions.Builder setBulkMutationRpcTargetMs(int bulkMutationRpcTargetMs)
-
build
public BulkOptions build()
-
-