@InternalExtensionOnly public class BulkOptions extends Object implements Serializable, Cloneable
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
For internal use only - public for technical reasons.
|
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 |
---|---|
static BulkOptions.Builder |
builder() |
protected BulkOptions |
clone() |
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.
|
@InternalApi(value="For internal usage only") public static final int BIGTABLE_ASYNC_MUTATOR_COUNT_DEFAULT
@InternalApi(value="For internal usage only") public static final long BIGTABLE_BULK_MAX_REQUEST_SIZE_BYTES_DEFAULT
For internal use only - public for technical reasons.
@InternalApi(value="For internal usage only") public static final int BIGTABLE_BULK_MAX_ROW_KEY_COUNT_DEFAULT
For internal use only - public for technical reasons.
@InternalApi(value="For internal usage only") public static final boolean BIGTABLE_BULK_ENABLE_THROTTLE_REBALANCE_DEFAULT
BulkMutation
intensive application will overload a cluster.
For internal use only - public for technical reasons.
@InternalApi(value="For internal usage only") public static final int BIGTABLE_BULK_THROTTLE_TARGET_MS_DEFAULT
For internal use only - public for technical reasons.
@InternalApi(value="For internal usage only") public static long BIGTABLE_BULK_AUTOFLUSH_MS_DEFAULT
For internal use only - public for technical reasons.
@InternalApi(value="For internal usage only") public static final int BIGTABLE_MAX_INFLIGHT_RPCS_PER_CHANNEL_DEFAULT
For internal use only - public for technical reasons.
@InternalApi(value="For internal usage only") public static final long BIGTABLE_MAX_MEMORY_DEFAULT
For internal use only - public for technical reasons.
public static BulkOptions.Builder builder()
public int getAsyncMutatorCount()
asyncMutatorCount
.public boolean useBulkApi()
public int getBulkMaxRowKeyCount()
bulkMaxRowKeyCount
.public long getBulkMaxRequestSize()
bulkMaxRequestSize
.public long getAutoflushMs()
autoflushMs
.public int getMaxInflightRpcs()
maxInflightRpcs
.public long getMaxMemory()
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()
BulkOptions.Builder
object.protected BulkOptions clone()