@InternalApi(value="For internal usage only") public class BigtableBufferedMutator extends Object implements org.apache.hadoop.hbase.client.BufferedMutator
BufferedMutator implementation.
For internal use only - public for technical reasons.
| Constructor and Description |
|---|
BigtableBufferedMutator(BigtableApi bigtableApi,
BigtableHBaseSettings settings,
HBaseRequestAdapter adapter,
org.apache.hadoop.hbase.client.BufferedMutator.ExceptionListener listener)
Constructor for BigtableBufferedMutator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.hbase.TableName |
getName() |
long |
getWriteBufferSize() |
void |
mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations) |
void |
mutate(org.apache.hadoop.hbase.client.Mutation mutation)
Being a Mutation.
|
protected static final Logger LOG
public BigtableBufferedMutator(BigtableApi bigtableApi, BigtableHBaseSettings settings, HBaseRequestAdapter adapter, org.apache.hadoop.hbase.client.BufferedMutator.ExceptionListener listener)
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.listener - Handles exceptions. By default, it just throws the exception.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.hadoop.hbase.client.BufferedMutatorIOExceptionpublic void flush()
throws IOException
flush in interface org.apache.hadoop.hbase.client.BufferedMutatorIOExceptionpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface org.apache.hadoop.hbase.client.BufferedMutatorpublic org.apache.hadoop.hbase.TableName getName()
getName in interface org.apache.hadoop.hbase.client.BufferedMutatorpublic long getWriteBufferSize()
getWriteBufferSize in interface org.apache.hadoop.hbase.client.BufferedMutatorpublic void mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations) throws IOException
mutate in interface org.apache.hadoop.hbase.client.BufferedMutatorIOExceptionpublic void mutate(org.apache.hadoop.hbase.client.Mutation mutation)
throws IOException
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 org.apache.hadoop.hbase.client.BufferedMutatorIOException