@InterfaceAudience.Public public interface AsyncBufferedMutator extends Closeable
AsyncConnection
and call close()
afterwards.
The implementation is required to be thread safe.
限定符和类型 | 方法和说明 |
---|---|
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. |
default long |
getPeriodicalFlushTimeout(TimeUnit unit)
Returns the periodical flush interval, 0 means disabled.
|
long |
getWriteBufferSize()
Returns the maximum size in bytes of the write buffer.
|
List<CompletableFuture<Void>> |
mutate(List<? extends Mutation> mutations)
Send some
Mutation s to the table. |
default 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.
default 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)
Mutation
s 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
在接口中 AutoCloseable
close
在接口中 Closeable
long getWriteBufferSize()
The default value comes from the configuration parameter hbase.client.write.buffer
.
default long getPeriodicalFlushTimeout(TimeUnit unit)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.