FlatRowAdapter.FlatRowBuilder (Cloud Bigtable HBase Client for Java 1.10.0 API)

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 Detail

      • FlatRowBuilder

        public FlatRowBuilder()
    • Method Detail

      • startRow

        public void startRow(ByteString rowKey)
        Specified by:
        startRow in interface com.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 interface com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
      • cellValue

        public void cellValue(ByteString value)
        Specified by:
        cellValue in interface com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
      • finishCell

        public void finishCell()
        Adds a Cell to FlatRow.Cell's map which is ordered by family. cells received from RowBuilder has ordering as:
        • family names clustered, but not sorted
        • qualifiers in each family cluster is sorted lexicographically
        • then descending by timestamp
        The end result will be that FlatRow.Cell are ordered as:
        • lexicographical by family
        • then lexicographical by qualifier
        • then descending by timestamp
        A flattened version of the FlatRow.Cell map will be sorted correctly.
        Specified by:
        finishCell in interface com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
      • finishRow

        public FlatRow finishRow()
        This method flattens the cells which has a map of Lists keyed by family name. The cells TreeMap is sorted lexicographically, and each List is sorted by qualifier in lexicographically ascending order, and timestamp in descending order.
        Specified by:
        finishRow in interface com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
        Returns:
        an object of HBase FlatRow.
      • reset

        public void reset()
        Specified by:
        reset in interface com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>
      • createScanMarkerRow

        public FlatRow createScanMarkerRow(ByteString rowKey)
        Specified by:
        createScanMarkerRow in interface com.google.cloud.bigtable.data.v2.models.RowAdapter.RowBuilder<FlatRow>


Esta página foi útil? Conte sua opinião sobre:

Enviar comentários sobre…

Cloud Bigtable Documentation