@InternalApi(value="For internal usage only") public abstract class MutationAdapter<T extends org.apache.hadoop.hbase.client.Row> extends Object implements OperationAdapter<T,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
Row
Operation into a Google Cloud Java MutationApi
.
For internal use only - public for technical reasons.
Constructor and Description |
---|
MutationAdapter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
adapt(T 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. |
protected static byte[] |
getBytes(com.google.protobuf.ByteString bs) |
protected static byte[] getBytes(com.google.protobuf.ByteString bs)
public abstract void adapt(T operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation)
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<T extends org.apache.hadoop.hbase.client.Row,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
operation
- The HBase Row
to convertmutation
- The model MutationApi