@InterfaceAudience.Public public interface AsyncBufferedMutator extends Closeable
AsyncConnection and call close() afterwards.
The implementation is required to be thread safe.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Performs a
flush() and releases any resources held. |
void |
flush()
Executes all the buffered, asynchronous operations.
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
Returns the
Configuration object used by this instance. |
TableName |
getName()
Gets the fully qualified table name instance of the table that this
AsyncBufferedMutator writes to. |
long |
getWriteBufferSize()
Returns the maximum size in bytes of the write buffer.
|
List<CompletableFuture<Void>> |
mutate(List<? extends Mutation> mutations)
Send some
Mutations to the table. |
CompletableFuture<Void> |
mutate(Mutation mutation)
Sends a
Mutation to the table. |
TableName getName()
AsyncBufferedMutator writes to.org.apache.hadoop.conf.Configuration getConfiguration()
Configuration object used by this instance.
The reference returned is not a copy, so any change made to it will affect this instance.
CompletableFuture<Void> mutate(Mutation mutation)
Mutation to the table. The mutations will be buffered and sent over the wire as
part of a batch. Currently only supports Put and Delete mutations.mutation - The data to send.List<CompletableFuture<Void>> mutate(List<? extends Mutation> mutations)
Mutations to the table. The mutations will be buffered and sent over the wire
as part of a batch. There is no guarantee of sending entire content of mutations in a
single batch, the implementations are free to break it up according to the write buffer
capacity.mutations - The data to send.void flush()
void close()
flush() and releases any resources held.close in interface AutoCloseableclose in interface Closeablelong getWriteBufferSize()
The default value comes from the configuration parameter hbase.client.write.buffer.
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.