@InternalApi(value="For internal usage only") public class BigtableBufferedMutatorHelper extends Object
BufferedMutator
implementations.
For internal use only - public for technical reasons.
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG
Constant
LOG |
Constructor and Description |
---|
BigtableBufferedMutatorHelper(HBaseRequestAdapter adapter,
org.apache.hadoop.conf.Configuration configuration,
BigtableSession session)
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() |
List<com.google.api.core.ApiFuture<?>> |
mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations) |
com.google.api.core.ApiFuture<?> |
mutate(org.apache.hadoop.hbase.client.Mutation mutation)
Being a Mutation.
|
com.google.api.core.ApiFuture<?> |
mutate(org.apache.hadoop.hbase.client.RowMutations mutation) |
void |
sendUnsent() |
protected static final Logger LOG
LOG
public BigtableBufferedMutatorHelper(HBaseRequestAdapter adapter, org.apache.hadoop.conf.Configuration configuration, BigtableSession session)
adapter
- Converts HBase objects to Bigtable protosconfiguration
- For Additional configuration. TODO: move this to optionssession
- a BigtableSession
object.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.api.core.ApiFuture<?>> mutate(List<? extends org.apache.hadoop.hbase.client.Mutation> mutations)
public com.google.api.core.ApiFuture<?> mutate(org.apache.hadoop.hbase.client.Mutation mutation)
maxInflightRpcs
RPCs in flight 2) There are more than getWriteBufferSize()
bytes pendingmutation
- a Mutation
object.ApiFuture
object.public com.google.api.core.ApiFuture<?> mutate(org.apache.hadoop.hbase.client.RowMutations mutation)
mutation
- a RowMutations
object.ApiFuture
object.