@InternalApi(value="For internal usage only") public class BigtableAsyncBufferedMutator extends Object implements AsyncBufferedMutator
AsyncBufferedMutator
For internal use only - public for technical reasons.
| Constructor and Description |
|---|
BigtableAsyncBufferedMutator(BigtableApi bigtableApi,
BigtableHBaseSettings settings,
HBaseRequestAdapter adapter)
Constructor for BigtableBufferedMutator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
TableName |
getName() |
long |
getWriteBufferSize() |
List<CompletableFuture<Void>> |
mutate(List<? extends Mutation> mutations) |
CompletableFuture<Void> |
mutate(Mutation mutation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPeriodicalFlushTimeoutpublic BigtableAsyncBufferedMutator(BigtableApi bigtableApi, BigtableHBaseSettings settings, HBaseRequestAdapter adapter)
bigtableApi - a BigtableApi object to access bigtable data client.settings - a BigtableHBaseSettings object for bigtable settings.adapter - a HBaseRequestAdapter object to convert HBase object to Bigtable protos.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface AsyncBufferedMutatorpublic void flush()
flush in interface AsyncBufferedMutatorpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface AsyncBufferedMutatorpublic TableName getName()
getName in interface AsyncBufferedMutatorpublic long getWriteBufferSize()
getWriteBufferSize in interface AsyncBufferedMutatorpublic List<CompletableFuture<Void>> mutate(List<? extends Mutation> mutations)
mutate in interface AsyncBufferedMutatorpublic CompletableFuture<Void> mutate(Mutation mutation)
Being a Mutation. This method will block if either of the following are true: 1) There are
more than maxInflightRpcs RPCs in flight 2) There are more than getWriteBufferSize() bytes pending
mutate in interface AsyncBufferedMutator