@InternalApi(value="For internal usage only") public class HBaseMutationAdapter extends MutationAdapter<org.apache.hadoop.hbase.client.Mutation>
MutationApi.
This class uses instanceof checking to determine an appropriate adaptation to apply.
For internal use only - public for technical reasons.
| Constructor and Description |
|---|
HBaseMutationAdapter(MutationAdapter<org.apache.hadoop.hbase.client.Delete> deleteAdapter,
MutationAdapter<org.apache.hadoop.hbase.client.Put> putAdapter,
MutationAdapter<org.apache.hadoop.hbase.client.Increment> incrementAdapter,
MutationAdapter<org.apache.hadoop.hbase.client.Append> appendAdapter)
Constructor for MutationAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
adapt(org.apache.hadoop.hbase.client.Mutation mutation,
com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationModel)
Converts an HBase
Row which represents a set of changes to a single row from an HBase
perspective to a Google Cloud Java MutationApi which represent the set of changes. |
getBytespublic HBaseMutationAdapter(MutationAdapter<org.apache.hadoop.hbase.client.Delete> deleteAdapter, MutationAdapter<org.apache.hadoop.hbase.client.Put> putAdapter, MutationAdapter<org.apache.hadoop.hbase.client.Increment> incrementAdapter, MutationAdapter<org.apache.hadoop.hbase.client.Append> appendAdapter)
deleteAdapter - a OperationAdapter
object.putAdapter - a OperationAdapter object.incrementAdapter - a OperationAdapter
object.appendAdapter - a OperationAdapter
object.public void adapt(org.apache.hadoop.hbase.client.Mutation mutation,
com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationModel)
Row which represents a set of changes to a single row from an HBase
perspective to a Google Cloud Java MutationApi which represent the set of changes.adapt in interface OperationAdapter<org.apache.hadoop.hbase.client.Mutation,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>adapt in class MutationAdapter<org.apache.hadoop.hbase.client.Mutation>mutation - The HBase Row to convertmutationModel - The model MutationApi