@InternalApi(value="For internal usage only") public class DeleteAdapter extends MutationAdapter<org.apache.hadoop.hbase.client.Delete>
MutationApi
.
For internal use only - public for technical reasons.
Constructor and Description |
---|
DeleteAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
adapt(org.apache.hadoop.hbase.client.Delete operation,
com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation)
Converts an HBase
Row which represents a set of changes to a single row from an HBase
perspective to a Google Cloud Java MutationApi which represent the set of changes. |
static void |
isValidDelete(org.apache.hadoop.hbase.Cell cell)
Throws
UnsupportedOperationException for deletes that are not supported by Cloud
Bigtable. |
getBytes
public static void isValidDelete(org.apache.hadoop.hbase.Cell cell)
UnsupportedOperationException
for deletes that are not supported by Cloud
Bigtable. Does nothing otherwise.cell
- the delete to validate.public void adapt(org.apache.hadoop.hbase.client.Delete operation, com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation)
Row
which represents a set of changes to a single row from an HBase
perspective to a Google Cloud Java MutationApi
which represent the set of changes.adapt
in interface OperationAdapter<org.apache.hadoop.hbase.client.Delete,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
adapt
in class MutationAdapter<org.apache.hadoop.hbase.client.Delete>
operation
- The HBase Row
to convertmutation
- The model MutationApi