Package org.apache.hadoop.hbase.client
Interface AsyncBufferedMutatorBuilder
- All Known Implementing Classes:
AsyncBufferedMutatorBuilderImpl
For creating
AsyncBufferedMutator
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create theAsyncBufferedMutator
instance.default AsyncBufferedMutatorBuilder
Disable the periodical flush, i.e, set the timeout to 0.setMaxAttempts
(int maxAttempts) Set the max attempt times for an operation.setMaxKeyValueSize
(int maxKeyValueSize) Override the maximum key-value size specified by the providedAsyncConnection
'sConfiguration
instance, via the configuration keyhbase.client.keyvalue.maxsize
.default AsyncBufferedMutatorBuilder
setMaxRetries
(int maxRetries) Set the max retry times for an operation.setOperationTimeout
(long timeout, TimeUnit unit) Set timeout for the background flush operation.setRequestAttribute
(String key, byte[] value) Set a rpc request attribute.setRequestAttributes
(Map<String, byte[]> requestAttributes) Set multiple rpc request attributes.setRetryPause
(long pause, TimeUnit unit) Set the base pause time for retrying.setRpcTimeout
(long timeout, TimeUnit unit) Set timeout for each rpc request when doing background flush.setStartLogErrorsCnt
(int startLogErrorsCnt) Set the number of retries that are allowed before we start to log.default AsyncBufferedMutatorBuilder
setWriteBufferPeriodicFlush
(long timeout, TimeUnit unit) Set the periodical flush interval.setWriteBufferSize
(long writeBufferSize) Override the write buffer size specified by the providedAsyncConnection
'sConfiguration
instance, via the configuration keyhbase.client.write.buffer
.
-
Method Details
-
setOperationTimeout
Set timeout for the background flush operation. -
setRpcTimeout
Set timeout for each rpc request when doing background flush. -
setRequestAttribute
Set a rpc request attribute. -
setRequestAttributes
Set multiple rpc request attributes. -
setRetryPause
Set the base pause time for retrying. We use an exponential policy to generate sleep time when retrying. -
setWriteBufferPeriodicFlush
Set the periodical flush interval. If the data in the buffer has not been flush for a long time, i.e, reach this timeout limit, we will flush it automatically. Notice that, set the timeout to 0 or a negative value means disable periodical flush, not 'flush immediately'. If you want to flush immediately then you should not use this class, as it is designed to be 'buffered'. -
disableWriteBufferPeriodicFlush
Disable the periodical flush, i.e, set the timeout to 0. -
setMaxRetries
Set the max retry times for an operation. Usually it is the max attempt times minus 1.Operation timeout and max attempt times(or max retry times) are both limitations for retrying, we will stop retrying when we reach any of the limitations.
-
setMaxAttempts
Set the max attempt times for an operation. Usually it is the max retry times plus 1. Operation timeout and max attempt times(or max retry times) are both limitations for retrying, we will stop retrying when we reach any of the limitations. -
setStartLogErrorsCnt
Set the number of retries that are allowed before we start to log. -
setWriteBufferSize
Override the write buffer size specified by the providedAsyncConnection
'sConfiguration
instance, via the configuration keyhbase.client.write.buffer
. -
setMaxKeyValueSize
Override the maximum key-value size specified by the providedAsyncConnection
'sConfiguration
instance, via the configuration keyhbase.client.keyvalue.maxsize
. -
build
Create theAsyncBufferedMutator
instance.
-