@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(BigtableApi bigtableApi,
BigtableHBaseSettings settings,
HBaseRequestAdapter adapter)
Constructor for BigtableBufferedMutatorHelper.
|
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(BigtableApi bigtableApi, BigtableHBaseSettings settings, HBaseRequestAdapter adapter)
bigtableApi
- a BigtableApi
object to access bigtable data client.settings
- a BigtableHBaseSettings
object for bigtable settingsadapter
- a HBaseRequestAdapter
object to convert HBase objects to Bigtable protospublic 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.