com.google.cloud.bigtable.hbase.adapters
Class MutationAdapter<T extends Row>
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.adapters.MutationAdapter<T>
-
- All Implemented Interfaces:
- OperationAdapter<T,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
- Direct Known Subclasses:
- DeleteAdapter, HBaseMutationAdapter, PutAdapter, RowMutationsAdapter, UnsupportedMutationAdapter
public abstract class MutationAdapter<T extends Row> extends Object implements OperationAdapter<T,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
Adapt an HBaseRow
Operation into a Google Cloud JavaMutationApi
.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Constructor Summary
Constructors Constructor and Description MutationAdapter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract void
adapt(T operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation)
Converts an HBaseRow
which represents a set of changes to a single row from an HBase perspective to a Google Cloud JavaMutationApi
which represent the set of changes.protected static byte[]
getBytes(ByteString bs)
-
-
-
Method Detail
-
getBytes
protected static byte[] getBytes(ByteString bs)
-
adapt
public abstract void adapt(T operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation)
Converts an HBaseRow
which represents a set of changes to a single row from an HBase perspective to a Google Cloud JavaMutationApi
which represent the set of changes.- Specified by:
adapt
in interfaceOperationAdapter<T extends Row,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
- Parameters:
operation
- The HBaseRow
to convertmutation
- The modelMutationApi
-
-