com.google.cloud.bigtable.hbase.adapters
Class RowMutationsAdapter
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.adapters.MutationAdapter<RowMutations>
-
- com.google.cloud.bigtable.hbase.adapters.RowMutationsAdapter
-
- All Implemented Interfaces:
- OperationAdapter<RowMutations,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
public class RowMutationsAdapter extends MutationAdapter<RowMutations>
An adapter that adapts aRowMutations
object into Google Cloud JavaMutationApi
.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Field Summary
Fields Modifier and Type Field and Description protected MutationAdapter<Mutation>
mutationAdapter
-
Constructor Summary
Constructors Constructor and Description RowMutationsAdapter(MutationAdapter<Mutation> mutationAdapter)
Constructor for RowMutationsAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
adapt(RowMutations operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationApi)
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
-
-
-
-
Field Detail
-
mutationAdapter
protected final MutationAdapter<Mutation> mutationAdapter
-
-
Constructor Detail
-
RowMutationsAdapter
public RowMutationsAdapter(MutationAdapter<Mutation> mutationAdapter)
Constructor for RowMutationsAdapter.- Parameters:
mutationAdapter
- aMutationAdapter
object.
-
-
Method Detail
-
adapt
public void adapt(RowMutations operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationApi)
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<RowMutations,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
- Specified by:
adapt
in classMutationAdapter<RowMutations>
- Parameters:
operation
- The HBaseRow
to convertmutationApi
- The modelMutationApi
-
-