public class BigtableBufferedMutatorHelper extends Object
BufferedMutator
implementations.Modifier and Type | Field | Description |
---|---|---|
protected static com.google.cloud.bigtable.config.Logger |
LOG |
Constant
LOG |
Constructor | Description |
---|---|
BigtableBufferedMutatorHelper(HBaseRequestAdapter adapter,
org.apache.hadoop.conf.Configuration configuration,
com.google.cloud.bigtable.grpc.BigtableSession session) |
Constructor for BigtableBufferedMutator.
|
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
void |
flush() |
|
org.apache.hadoop.conf.Configuration |
getConfiguration() |
|
org.apache.hadoop.hbase.TableName |
getName() |
|
long |
getWriteBufferSize() |
|
boolean |
hasInflightRequests() |
hasInflightRequests.
|
List<com.google.common.util.concurrent.ListenableFuture<?>> |
mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations) |
|
com.google.common.util.concurrent.ListenableFuture<?> |
mutate(org.apache.hadoop.hbase.client.Mutation mutation) |
Being a Mutation.
|
void |
sendUnsent() |
public BigtableBufferedMutatorHelper(HBaseRequestAdapter adapter, org.apache.hadoop.conf.Configuration configuration, com.google.cloud.bigtable.grpc.BigtableSession session)
Constructor for BigtableBufferedMutator.
adapter
- Converts HBase objects to Bigtable protosconfiguration
- For Additional configuration. TODO: move this to optionssession
- a BigtableSession
to get
BigtableOptions
,
AsyncExecutor
and
BulkMutation
objects from starting the
async operations on the BigtableDataClient.public void close() throws IOException
IOException
public void flush() throws IOException
IOException
public void sendUnsent()
public org.apache.hadoop.conf.Configuration getConfiguration()
public org.apache.hadoop.hbase.TableName getName()
public long getWriteBufferSize()
public List<com.google.common.util.concurrent.ListenableFuture<?>> mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations)
public com.google.common.util.concurrent.ListenableFuture<?> mutate(org.apache.hadoop.hbase.client.Mutation mutation)
maxInflightRpcs
RPCs in flight
2) There are more than getWriteBufferSize()
bytes pendingpublic boolean hasInflightRequests()
hasInflightRequests.