@InternalApi(value="For internal usage only") public class RowResultAdapter extends Object implements com.google.cloud.bigtable.data.v2.models.RowAdapter<org.apache.hadoop.hbase.client.Result>
RowAdapter
that uses Result
to represent logical rows.
This adapter is responsible for cell deduplication. bigtable-hbase will convert a FilterList.Operator.MUST_PASS_ONE
filter into an RowFilter.Interleave
. Unfortunately there is a bit of a
mismatch between the 2 filters: MUST_PASS_ONE will not duplicate the cell if it matches multiple
branches of the MUST_PASS_ONE, but Interleave will.This adapter will pave over the difference by
removing the duplicate cells while building the Result. However, HBase's WhileMatchFilter depends
on duplicate labelled cells for its implementation. So this adapter will not deduplicate labelled
cells.
This adapter will also return and check for scan marker rows, which will be an empty row with the scan marker row label.
For internal use only - public for technical reasons.
Constructor and Description |
---|
RowResultAdapter() |
Modifier and Type | Method and Description |
---|---|
com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<org.apache.hadoop.hbase.client.Result> |
createRowBuilder() |
com.google.protobuf.ByteString |
getKey(org.apache.hadoop.hbase.client.Result result) |
boolean |
isScanMarkerRow(org.apache.hadoop.hbase.client.Result result)
Checks if the result is a scan marker row.
|
public com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<org.apache.hadoop.hbase.client.Result> createRowBuilder()
createRowBuilder
in interface com.google.cloud.bigtable.data.v2.models.RowAdapter<org.apache.hadoop.hbase.client.Result>
public boolean isScanMarkerRow(org.apache.hadoop.hbase.client.Result result)
isScanMarkerRow
in interface com.google.cloud.bigtable.data.v2.models.RowAdapter<org.apache.hadoop.hbase.client.Result>
public com.google.protobuf.ByteString getKey(org.apache.hadoop.hbase.client.Result result)
getKey
in interface com.google.cloud.bigtable.data.v2.models.RowAdapter<org.apache.hadoop.hbase.client.Result>