OperationAdapter<org.apache.hadoop.hbase.client.RowMutations,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
public class RowMutationsAdapter extends MutationAdapter<org.apache.hadoop.hbase.client.RowMutations>
RowMutations
object into Google Cloud Java
MutationApi
.Modifier and Type | Field | Description |
---|---|---|
protected MutationAdapter<org.apache.hadoop.hbase.client.Mutation> |
mutationAdapter |
Constructor | Description |
---|---|
RowMutationsAdapter(MutationAdapter<org.apache.hadoop.hbase.client.Mutation> mutationAdapter) |
Constructor for RowMutationsAdapter.
|
Modifier and Type | Method | Description |
---|---|---|
void |
adapt(org.apache.hadoop.hbase.client.RowMutations operation,
com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationApi) |
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. |
getBytes
protected final MutationAdapter<org.apache.hadoop.hbase.client.Mutation> mutationAdapter
public RowMutationsAdapter(MutationAdapter<org.apache.hadoop.hbase.client.Mutation> mutationAdapter)
Constructor for RowMutationsAdapter.
mutationAdapter
- a MutationAdapter
object.public void adapt(org.apache.hadoop.hbase.client.RowMutations operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationApi)
MutationAdapter
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.RowMutations,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
adapt
in class MutationAdapter<org.apache.hadoop.hbase.client.RowMutations>
operation
- The HBase Row
to convertmutationApi
- The model MutationApi