Package org.apache.hadoop.hbase.client
Class BufferedMutatorParams
java.lang.Object
org.apache.hadoop.hbase.client.BufferedMutatorParams
- All Implemented Interfaces:
Cloneable
Parameters for instantiating a
BufferedMutator.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate intprivate intprivate intprivate ExecutorServiceprivate intprivate final TableName(package private) static final intprivate longprivate longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.Since 3.0.0, will be removed in 4.0.0.intintThe maximum number of mutations that this buffered mutator will buffer before flushing themintgetPool()Deprecated.Since 3.0.0-alpha-2, will be removed in 4.0.0.intlonglongDeprecated.Since 3.0.0, will be removed in 4.0.0.longimplementationClassName(String implementationClassName) Deprecated.Since 3.0.0, will be removed in 4.0.0.listener(BufferedMutator.ExceptionListener listener) Override the default error handler.maxKeyValueSize(int maxKeyValueSize) Override the maximum key-value size specified by the providedConnection'sConfigurationinstance, via the configuration keyhbase.client.keyvalue.maxsize.operationTimeout(int operationTimeout) opertationTimeout(int operationTimeout) Deprecated.Since 2.3.0, will be removed in 4.0.0.pool(ExecutorService pool) Deprecated.Since 3.0.0-alpha-2, will be removed in 4.0.0.rpcTimeout(int rpcTimeout) setMaxMutations(int maxMutations) Set the maximum number of mutations that this buffered mutator will buffer before flushing them.setRequestAttribute(String key, byte[] value) setWriteBufferPeriodicFlushTimeoutMs(long timeoutMs) Set the max timeout before the buffer is automatically flushed.setWriteBufferPeriodicFlushTimerTickMs(long timerTickMs) Deprecated.Since 3.0.0, will be removed in 4.0.0.writeBufferSize(long writeBufferSize) Override the write buffer size specified by the providedConnection'sConfigurationinstance, via the configuration keyhbase.client.write.buffer.
-
Field Details
-
UNSET
- See Also:
-
tableName
-
writeBufferSize
-
writeBufferPeriodicFlushTimeoutMs
-
writeBufferPeriodicFlushTimerTickMs
-
maxKeyValueSize
-
pool
-
implementationClassName
-
rpcTimeout
-
operationTimeout
-
maxMutations
-
requestAttributes
-
listener
-
-
Constructor Details
-
BufferedMutatorParams
-
-
Method Details
-
getTableName
-
getWriteBufferSize
-
rpcTimeout
-
getRpcTimeout
-
operationTimeout
-
opertationTimeout
Deprecated.Since 2.3.0, will be removed in 4.0.0. UseoperationTimeout(int) -
getOperationTimeout
-
setMaxMutations
Set the maximum number of mutations that this buffered mutator will buffer before flushing them. If you are talking to a cluster that uses hbase.rpc.rows.size.threshold.reject to reject large Multi requests, you may need this setting to avoid rejections. Default is no limit. -
getMaxMutations
The maximum number of mutations that this buffered mutator will buffer before flushing them -
setRequestAttribute
-
getRequestAttributes
-
writeBufferSize
Override the write buffer size specified by the providedConnection'sConfigurationinstance, via the configuration keyhbase.client.write.buffer. -
getWriteBufferPeriodicFlushTimeoutMs
-
setWriteBufferPeriodicFlushTimeoutMs
Set the max timeout before the buffer is automatically flushed. -
getWriteBufferPeriodicFlushTimerTickMs
Deprecated.Since 3.0.0, will be removed in 4.0.0. We use a common timer in the whole client implementation so you can not set it any more. -
setWriteBufferPeriodicFlushTimerTickMs
Deprecated.Since 3.0.0, will be removed in 4.0.0. We use a common timer in the whole client implementation so you can not set it any more.Set the TimerTick how often the buffer timeout if checked. -
getMaxKeyValueSize
-
maxKeyValueSize
Override the maximum key-value size specified by the providedConnection'sConfigurationinstance, via the configuration keyhbase.client.keyvalue.maxsize. -
getPool
Deprecated.Since 3.0.0-alpha-2, will be removed in 4.0.0. You can not set it anymore. BufferedMutator will use Connection's ExecutorService. -
pool
Deprecated.Since 3.0.0-alpha-2, will be removed in 4.0.0. You can not set it anymore. BufferedMutator will use Connection's ExecutorService.Override the default executor pool defined by thehbase.htable.threads.*configuration values. -
getImplementationClassName
Deprecated.Since 3.0.0, will be removed in 4.0.0. You can not set it any more as the implementation has to use too many internal stuffs in HBase.- Returns:
- Name of the class we will use when we construct a
BufferedMutatorinstance or null if default implementation.
-
implementationClassName
Deprecated.Since 3.0.0, will be removed in 4.0.0. You can not set it any more as the implementation has to use too many internal stuffs in HBase.Specify a BufferedMutator implementation other than the default.- Parameters:
implementationClassName- Name of the BufferedMutator implementation class
-
getListener
-
listener
Override the default error handler. Default handler simply rethrows the exception. -
clone
-