OperationAdapter<org.apache.hadoop.hbase.client.Put,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
public class PutAdapter extends MutationAdapter<org.apache.hadoop.hbase.client.Put>
Put
Operation into a Google Cloud Java
MutationApi
.Constructor | Description |
---|---|
PutAdapter(int maxKeyValueSize) |
Constructor for PutAdapter.
|
PutAdapter(int maxKeyValueSize,
boolean setClientTimestamp) |
Constructor for PutAdapter.
|
Modifier and Type | Method | Description |
---|---|---|
org.apache.hadoop.hbase.client.Put |
adapt(com.google.bigtable.v2.MutateRowRequest request) |
adapt.
|
protected void |
adaptMutations(org.apache.hadoop.hbase.client.Put operation,
com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation) |
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
public PutAdapter(int maxKeyValueSize)
Constructor for PutAdapter.
maxKeyValueSize
- a int.public PutAdapter(int maxKeyValueSize, boolean setClientTimestamp)
Constructor for PutAdapter.
maxKeyValueSize
- a int.setClientTimestamp
- a boolean.protected void adaptMutations(org.apache.hadoop.hbase.client.Put operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation)
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.Put>
operation
- The HBase Mutation
to convertmutation
- The model MutationApi
public org.apache.hadoop.hbase.client.Put adapt(com.google.bigtable.v2.MutateRowRequest request) throws IOException
adapt.
request
- a MutateRowRequest
object.Put
object.IOException
- if any.