com.google.cloud.bigtable.grpc.scanner
Class FlatRowAdapter.FlatRowBuilder
- java.lang.Object
-
- com.google.cloud.bigtable.grpc.scanner.FlatRowAdapter.FlatRowBuilder
-
- All Implemented Interfaces:
- com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
- Enclosing class:
- FlatRowAdapter
public class FlatRowAdapter.FlatRowBuilder extends Object implements com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
-
-
Constructor Summary
Constructors Constructor and Description FlatRowBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
cellValue(ByteString value)
FlatRow
createScanMarkerRow(ByteString rowKey)
void
finishCell()
Adds a Cell toFlatRow.Cell
's map which is ordered by family.FlatRow
finishRow()
This method flattens thecells
which has a map of Lists keyed by family name.void
reset()
void
startCell(String family, ByteString qualifier, long timestamp, List<String> labels, long size)
void
startRow(ByteString rowKey)
-
-
-
Method Detail
-
startRow
public void startRow(ByteString rowKey)
- Specified by:
startRow
in interfacecom.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
-
startCell
public void startCell(String family, ByteString qualifier, long timestamp, List<String> labels, long size)
- Specified by:
startCell
in interfacecom.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
-
cellValue
public void cellValue(ByteString value)
- Specified by:
cellValue
in interfacecom.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
-
finishCell
public void finishCell()
Adds a Cell toFlatRow.Cell
's map which is ordered by family. cells received fromRowBuilder
has ordering as:- family names clustered, but not sorted
- qualifiers in each family cluster is sorted lexicographically
- then descending by timestamp
FlatRow.Cell
are ordered as:- lexicographical by family
- then lexicographical by qualifier
- then descending by timestamp
FlatRow.Cell
map will be sorted correctly.- Specified by:
finishCell
in interfacecom.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
-
finishRow
public FlatRow finishRow()
-
reset
public void reset()
- Specified by:
reset
in interfacecom.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
-
createScanMarkerRow
public FlatRow createScanMarkerRow(ByteString rowKey)
- Specified by:
createScanMarkerRow
in interfacecom.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
-
-