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 |
---|---|---|
protected void |
adaptMutations(org.apache.hadoop.hbase.client.RowMutations operation,
com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationApi) |
Converts an HBase
Mutation which represents a set of changes to a single row from an
HBase perspective to a Google Cloud Java Mutation
which represent the set of changes. |
adapt, getBytes, toEntry
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.protected void adaptMutations(org.apache.hadoop.hbase.client.RowMutations operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationApi)
MutationAdapter
Mutation
which represents a set of changes to a single row from an
HBase perspective to a Google Cloud Java Mutation
which represent the set of changes. The name "Mutation" represents a more granular change in
Bigtable than an HBase "Mutation"; An HBase Cell
is akin to a Cloud Bigtable Mutation
. A CloudBigtable MutateRowRequest
or MutateRowsRequest.Entry
is akin to an HBase Mutation
.adaptMutations
in class MutationAdapter<org.apache.hadoop.hbase.client.RowMutations>
operation
- The HBase Mutation
to convertmutationApi
- The model MutationApi