@InterfaceAudience.Private public class OHBufferedMutatorImpl extends Object implements org.apache.hadoop.hbase.client.BufferedMutator
| 构造器和说明 |
|---|
OHBufferedMutatorImpl(OHConnectionImpl ohConnection,
org.apache.hadoop.hbase.client.BufferedMutatorParams params) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
disableWriteBufferPeriodicFlush()
reset the time parameters and cancel the timer (if exists)
|
void |
flush()
Force to commit all operations
|
org.apache.hadoop.conf.Configuration |
getConfiguration() |
protected long |
getExecutedWriteBufferPeriodicFlushes() |
org.apache.hadoop.hbase.TableName |
getName() |
ExecutorService |
getPool() |
long |
getWriteBufferPeriodicFlushTimeoutMs() |
long |
getWriteBufferPeriodicFlushTimerTickMs() |
long |
getWriteBufferSize() |
void |
mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations)
Add all mutations in List into asyncWriteBuffer
|
void |
mutate(org.apache.hadoop.hbase.client.Mutation mutation)
Add the mutation into asyncWriteBuffer
|
void |
setOperationTimeout(int operationTimeout) |
void |
setRpcTimeout(int rpcTimeout) |
void |
setWriteBufferPeriodicFlush(long timeoutMs,
long timerTickMs)
set time for periodic flush timer
|
int |
size()
Count the mutations which haven't been processed.
|
void |
timeTriggerForWriteBufferPeriodicFlush()
triggered to do periodic flush if reach the time limit
|
public OHBufferedMutatorImpl(OHConnectionImpl ohConnection, org.apache.hadoop.hbase.client.BufferedMutatorParams params) throws IOException
IOExceptionpublic org.apache.hadoop.hbase.TableName getName()
getName 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorpublic void mutate(org.apache.hadoop.hbase.client.Mutation mutation)
throws IOException
mutate 在接口中 org.apache.hadoop.hbase.client.BufferedMutatormutation - - mutation operationIOExceptionpublic void mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations) throws IOException
mutate 在接口中 org.apache.hadoop.hbase.client.BufferedMutatormutations - - mutation operationsIOExceptionpublic void timeTriggerForWriteBufferPeriodicFlush()
public void setWriteBufferPeriodicFlush(long timeoutMs,
long timerTickMs)
setWriteBufferPeriodicFlush 在接口中 org.apache.hadoop.hbase.client.BufferedMutatortimeoutMs - control when to flush from collecting first mutationtimerTickMs - control time interval to trigger the timerpublic void disableWriteBufferPeriodicFlush()
disableWriteBufferPeriodicFlush 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorIOExceptionpublic void flush()
throws IOException
flush 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorIOExceptionpublic long getWriteBufferPeriodicFlushTimeoutMs()
getWriteBufferPeriodicFlushTimeoutMs 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorpublic long getWriteBufferPeriodicFlushTimerTickMs()
getWriteBufferPeriodicFlushTimerTickMs 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorpublic long getWriteBufferSize()
getWriteBufferSize 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorpublic void setRpcTimeout(int rpcTimeout)
setRpcTimeout 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorpublic void setOperationTimeout(int operationTimeout)
setOperationTimeout 在接口中 org.apache.hadoop.hbase.client.BufferedMutatorpublic int size()
public ExecutorService getPool()
protected long getExecutedWriteBufferPeriodicFlushes()
Copyright © 2025. All rights reserved.