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 |
---|---|---|
void |
adapt(org.apache.hadoop.hbase.client.Put operation,
com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation) |
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
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.public void adapt(org.apache.hadoop.hbase.client.Put operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation)
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.Put,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
adapt
in class MutationAdapter<org.apache.hadoop.hbase.client.Put>
operation
- The HBase Row
to convertmutation
- The model MutationApi