Class DefaultRowAdapter.DefaultRowBuilder
- java.lang.Object
-
- com.google.cloud.bigtable.data.v2.models.DefaultRowAdapter.DefaultRowBuilder
-
- All Implemented Interfaces:
RowAdapter.RowBuilder<Row>
- Enclosing class:
- DefaultRowAdapter
@InternalApi public class DefaultRowAdapter.DefaultRowBuilder extends Object implements RowAdapter.RowBuilder<Row>
Internal implementation detail forDefaultRowAdapter
.
-
-
Constructor Summary
Constructors Constructor Description DefaultRowBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cellValue(com.google.protobuf.ByteString value)
Called multiple times per cell to concatenate the cell value.Row
createScanMarkerRow(com.google.protobuf.ByteString key)
Creates a special row to mark server progress before any data is receivedvoid
finishCell()
Called once per cell to signal the end of the value (unless reset).Row
finishRow()
Called once per row to signal that all cells have been processed (unless reset).void
reset()
Called when the current in progress row should be droppedvoid
startCell(String family, com.google.protobuf.ByteString qualifier, long timestamp, List<String> labels, long size)
Called to start a new cell in a row.void
startRow(com.google.protobuf.ByteString key)
Called to start a new row.
-
-
-
Method Detail
-
createScanMarkerRow
public Row createScanMarkerRow(com.google.protobuf.ByteString key)
Creates a special row to mark server progress before any data is received- Specified by:
createScanMarkerRow
in interfaceRowAdapter.RowBuilder<Row>
-
startRow
public void startRow(com.google.protobuf.ByteString key)
Called to start a new row. This will be called once per row.- Specified by:
startRow
in interfaceRowAdapter.RowBuilder<Row>
-
startCell
public void startCell(String family, com.google.protobuf.ByteString qualifier, long timestamp, List<String> labels, long size)
Called to start a new cell in a row.- Specified by:
startCell
in interfaceRowAdapter.RowBuilder<Row>
-
cellValue
public void cellValue(com.google.protobuf.ByteString value)
Called multiple times per cell to concatenate the cell value.- Specified by:
cellValue
in interfaceRowAdapter.RowBuilder<Row>
-
finishCell
public void finishCell()
Called once per cell to signal the end of the value (unless reset).- Specified by:
finishCell
in interfaceRowAdapter.RowBuilder<Row>
-
finishRow
public Row finishRow()
Called once per row to signal that all cells have been processed (unless reset).- Specified by:
finishRow
in interfaceRowAdapter.RowBuilder<Row>
-
reset
public void reset()
Called when the current in progress row should be dropped- Specified by:
reset
in interfaceRowAdapter.RowBuilder<Row>
-
-