com.google.cloud.bigtable.hbase.adapters
Class UnsupportedMutationAdapter<T extends Mutation>
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.adapters.MutationAdapter<T>
-
- com.google.cloud.bigtable.hbase.adapters.UnsupportedMutationAdapter<T>
-
- All Implemented Interfaces:
- OperationAdapter<T,com.google.bigtable.v2.MutateRowRequest.Builder>
public class UnsupportedMutationAdapter<T extends Mutation> extends MutationAdapter<T>
An adapter that throws an Unsupported exception when its adapt method is invoked.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Constructor Summary
Constructors Constructor and Description UnsupportedMutationAdapter(String operationDescription)
Constructor for UnsupportedOperationAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected Collection<com.google.bigtable.v2.Mutation>
adaptMutations(T operation)
Converts an HBaseMutation
which represents a set of changes to a single row from an HBase perspective to a collection of Cloud BigtableMutation
which represent the set of changes.-
Methods inherited from class com.google.cloud.bigtable.hbase.adapters.MutationAdapter
adapt, getBytes, toEntry
-
-
-
-
Method Detail
-
adaptMutations
protected Collection<com.google.bigtable.v2.Mutation> adaptMutations(T operation)
Converts an HBaseMutation
which represents a set of changes to a single row from an HBase perspective to a collection of Cloud BigtableMutation
which represent the set of changes. The name "Mutation" represents a more granular change in Bigtable than an HBase "Mutation"; An HBaseCell
is akin to a Cloud BigtableMutation
. A CloudBigtableMutateRowRequest
orMutateRowsRequest.Entry
is akin to an HBaseMutation
. Adapt a single HBase Operation to a single Bigtable generated message.- Specified by:
adaptMutations
in classMutationAdapter<T extends Mutation>
- Parameters:
operation
- The HBaseMutation
to convert- Returns:
- a
Collection
of Cloud BigtableMutation
-
-