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.cloud.bigtable.data.v2.models.MutationApi<?>>
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 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.-
Methods inherited from class com.google.cloud.bigtable.hbase.adapters.MutationAdapter
getBytes
-
-
-
-
Method Detail
-
adapt
public 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.Adapt a single HBase Operation to a single Bigtable generated message.
- Specified by:
adapt
in interfaceOperationAdapter<T extends Mutation,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
- Specified by:
adapt
in classMutationAdapter<T extends Mutation>
- Parameters:
operation
- The HBaseRow
to convertmutation
- The modelMutationApi
-
-