com.google.cloud.bigtable.hbase.adapters
Class PutAdapter
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.adapters.MutationAdapter<Put>
-
- com.google.cloud.bigtable.hbase.adapters.PutAdapter
-
- All Implemented Interfaces:
- OperationAdapter<Put,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
public class PutAdapter extends MutationAdapter<Put>
Adapt an HBasePut
Operation into a Google Cloud JavaMutationApi
.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Constructor Summary
Constructors Constructor and Description PutAdapter(int maxKeyValueSize)
Constructor for PutAdapter.PutAdapter(int maxKeyValueSize, boolean setClientTimestamp)
Constructor for PutAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
adapt(Put 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.-
Methods inherited from class com.google.cloud.bigtable.hbase.adapters.MutationAdapter
getBytes
-
-
-
-
Constructor Detail
-
PutAdapter
public PutAdapter(int maxKeyValueSize)
Constructor for PutAdapter.- Parameters:
maxKeyValueSize
- a int.
-
PutAdapter
public PutAdapter(int maxKeyValueSize, boolean setClientTimestamp)
Constructor for PutAdapter.- Parameters:
maxKeyValueSize
- a int.setClientTimestamp
- a boolean.
-
-
Method Detail
-
adapt
public void adapt(Put 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<Put,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
- Specified by:
adapt
in classMutationAdapter<Put>
- Parameters:
operation
- The HBaseRow
to convertmutation
- The modelMutationApi
-
-