@InterfaceAudience.Public public class BufferedMutatorParams extends Object implements Cloneable
BufferedMutator.| Constructor and Description |
|---|
BufferedMutatorParams(TableName tableName) |
| Modifier and Type | Method and Description |
|---|---|
BufferedMutatorParams |
clone() |
String |
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.
|
BufferedMutator.ExceptionListener |
getListener() |
int |
getMaxKeyValueSize() |
int |
getOperationTimeout() |
ExecutorService |
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.
|
int |
getRpcTimeout() |
TableName |
getTableName() |
long |
getWriteBufferPeriodicFlushTimeoutMs() |
long |
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.
|
long |
getWriteBufferSize() |
BufferedMutatorParams |
implementationClassName(String 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.
|
BufferedMutatorParams |
listener(BufferedMutator.ExceptionListener listener)
Override the default error handler.
|
BufferedMutatorParams |
maxKeyValueSize(int maxKeyValueSize)
Override the maximum key-value size specified by the provided
Connection's
Configuration instance, via the configuration key
hbase.client.keyvalue.maxsize. |
BufferedMutatorParams |
operationTimeout(int operationTimeout) |
BufferedMutatorParams |
opertationTimeout(int operationTimeout)
Deprecated.
Since 2.3.0, will be removed in 4.0.0. Use
operationTimeout(int) |
BufferedMutatorParams |
pool(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.
|
BufferedMutatorParams |
rpcTimeout(int rpcTimeout) |
BufferedMutatorParams |
setWriteBufferPeriodicFlushTimeoutMs(long timeoutMs)
Set the max timeout before the buffer is automatically flushed.
|
BufferedMutatorParams |
setWriteBufferPeriodicFlushTimerTickMs(long timerTickMs)
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.
|
BufferedMutatorParams |
writeBufferSize(long writeBufferSize)
Override the write buffer size specified by the provided
Connection's
Configuration instance, via the configuration key
hbase.client.write.buffer. |
public BufferedMutatorParams(TableName tableName)
public TableName getTableName()
public long getWriteBufferSize()
public BufferedMutatorParams rpcTimeout(int rpcTimeout)
public int getRpcTimeout()
public BufferedMutatorParams operationTimeout(int operationTimeout)
@Deprecated public BufferedMutatorParams opertationTimeout(int operationTimeout)
operationTimeout(int)public int getOperationTimeout()
public BufferedMutatorParams writeBufferSize(long writeBufferSize)
Connection's
Configuration instance, via the configuration key
hbase.client.write.buffer.public long getWriteBufferPeriodicFlushTimeoutMs()
public BufferedMutatorParams setWriteBufferPeriodicFlushTimeoutMs(long timeoutMs)
@Deprecated public long getWriteBufferPeriodicFlushTimerTickMs()
@Deprecated public BufferedMutatorParams setWriteBufferPeriodicFlushTimerTickMs(long timerTickMs)
public int getMaxKeyValueSize()
public BufferedMutatorParams maxKeyValueSize(int maxKeyValueSize)
Connection's
Configuration instance, via the configuration key
hbase.client.keyvalue.maxsize.@Deprecated public ExecutorService getPool()
@Deprecated public BufferedMutatorParams pool(ExecutorService pool)
hbase.htable.threads.* configuration
values.@Deprecated public String getImplementationClassName()
BufferedMutator instance or
null if default implementation.@Deprecated public BufferedMutatorParams implementationClassName(String implementationClassName)
implementationClassName - Name of the BufferedMutator implementation classpublic BufferedMutator.ExceptionListener getListener()
public BufferedMutatorParams listener(BufferedMutator.ExceptionListener listener)
public BufferedMutatorParams clone()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.