public class BulkOptions extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
BulkOptions.Builder
A mutable builder for BigtableConnectionOptions.
|
Modifier and Type | Field and Description |
---|---|
static int |
BIGTABLE_ASYNC_MUTATOR_COUNT_DEFAULT
Constant
BIGTABLE_ASYNC_MUTATOR_COUNT_DEFAULT=2 |
static long |
BIGTABLE_BULK_AUTOFLUSH_MS_DEFAULT
The maximum amount of time a row will be buffered for.
|
static boolean |
BIGTABLE_BULK_ENABLE_THROTTLE_REBALANCE_DEFAULT
Whether or not to enable a mechanism that reduces the likelihood that a
BulkMutation
intensive application will overload a cluster. |
static long |
BIGTABLE_BULK_MAX_REQUEST_SIZE_BYTES_DEFAULT
This describes the maximum size a bulk mutation RPC should be before sending it to the server
and starting the next bulk call.
|
static int |
BIGTABLE_BULK_MAX_ROW_KEY_COUNT_DEFAULT
This describes the maximum number of individual MutateRowsRequest.Entry objects to bundle in a
single bulk mutation RPC before sending it to the server and starting the next bulk call.
|
static int |
BIGTABLE_BULK_THROTTLE_TARGET_MS_DEFAULT
The target RPC response time for a MutateRows request.
|
static int |
BIGTABLE_MAX_INFLIGHT_RPCS_PER_CHANNEL_DEFAULT
Default rpc count per channel.
|
static long |
BIGTABLE_MAX_MEMORY_DEFAULT
This is the maximum accumulated size of uncompleted requests that we allow before throttling.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getAsyncMutatorCount()
Getter for the field
asyncMutatorCount . |
long |
getAutoflushMs()
Getter for the field
autoflushMs . |
long |
getBulkMaxRequestSize()
Getter for the field
bulkMaxRequestSize . |
int |
getBulkMaxRowKeyCount()
Getter for the field
bulkMaxRowKeyCount . |
int |
getBulkMutationRpcTargetMs()
if
isEnableBulkMutationThrottling() , then bulk mutation RPC latency will be compared
against this value. |
int |
getMaxInflightRpcs()
Getter for the field
maxInflightRpcs . |
long |
getMaxMemory()
Getter for the field
maxMemory . |
boolean |
isEnableBulkMutationThrottling()
Is an experimental feature of throttling bulk mutation RPCs turned on?
|
BulkOptions.Builder |
toBuilder()
toBuilder.
|
String |
toString() |
boolean |
useBulkApi()
useBulkApi.
|
public static final int BIGTABLE_ASYNC_MUTATOR_COUNT_DEFAULT
BIGTABLE_ASYNC_MUTATOR_COUNT_DEFAULT=2
public static final long BIGTABLE_BULK_MAX_REQUEST_SIZE_BYTES_DEFAULT
public static final int BIGTABLE_BULK_MAX_ROW_KEY_COUNT_DEFAULT
public static final boolean BIGTABLE_BULK_ENABLE_THROTTLE_REBALANCE_DEFAULT
BulkMutation
intensive application will overload a cluster.public static final int BIGTABLE_BULK_THROTTLE_TARGET_MS_DEFAULT
public static long BIGTABLE_BULK_AUTOFLUSH_MS_DEFAULT
public static final int BIGTABLE_MAX_INFLIGHT_RPCS_PER_CHANNEL_DEFAULT
public static final long BIGTABLE_MAX_MEMORY_DEFAULT
public int getAsyncMutatorCount()
Getter for the field asyncMutatorCount
.
public boolean useBulkApi()
useBulkApi.
public int getBulkMaxRowKeyCount()
Getter for the field bulkMaxRowKeyCount
.
public long getBulkMaxRequestSize()
Getter for the field bulkMaxRequestSize
.
public long getAutoflushMs()
Getter for the field autoflushMs
.
public int getMaxInflightRpcs()
Getter for the field maxInflightRpcs
.
public long getMaxMemory()
Getter for the field maxMemory
.
public boolean isEnableBulkMutationThrottling()
public int getBulkMutationRpcTargetMs()
isEnableBulkMutationThrottling()
, then bulk mutation RPC latency will be compared
against this value. If the RPC latency is higher, then some throttling will be applied.public BulkOptions.Builder toBuilder()
toBuilder.
BulkOptions.Builder
object.