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 for
DefaultRowAdapter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcellValue(com.google.protobuf.ByteString value) Called multiple times per cell to concatenate the cell value.createScanMarkerRow(com.google.protobuf.ByteString key) Creates a special row to mark server progress before any data is receivedvoidCalled once per cell to signal the end of the value (unless reset).Called once per row to signal that all cells have been processed (unless reset).voidreset()Called when the current in progress row should be droppedvoidstartCell(String family, com.google.protobuf.ByteString qualifier, long timestamp, List<String> labels, long size) Called to start a new cell in a row.voidstartRow(com.google.protobuf.ByteString key) Called to start a new row.
-
Constructor Details
-
DefaultRowBuilder
public DefaultRowBuilder()
-
-
Method Details
-
createScanMarkerRow
Creates a special row to mark server progress before any data is received- Specified by:
createScanMarkerRowin 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:
startRowin 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:
startCellin interfaceRowAdapter.RowBuilder<Row>
-
cellValue
public void cellValue(com.google.protobuf.ByteString value) Called multiple times per cell to concatenate the cell value.- Specified by:
cellValuein interfaceRowAdapter.RowBuilder<Row>
-
finishCell
public void finishCell()Called once per cell to signal the end of the value (unless reset).- Specified by:
finishCellin interfaceRowAdapter.RowBuilder<Row>
-
finishRow
Called once per row to signal that all cells have been processed (unless reset).- Specified by:
finishRowin interfaceRowAdapter.RowBuilder<Row>
-
reset
public void reset()Called when the current in progress row should be dropped- Specified by:
resetin interfaceRowAdapter.RowBuilder<Row>
-