Interface ScannerBuilder


  • public interface ScannerBuilder
    Since:
    1.0.0
    • Method Detail

      • over

        ScannerBuilder over​(Span span)
        Parameters:
        span - restrict the scanner to data within span
        Returns:
        self
      • overPrefix

        default ScannerBuilder overPrefix​(Bytes rowPrefix)
        Parameters:
        rowPrefix - restrict the scanner to data in rows that begins with a prefix
        Returns:
        self
        Since:
        1.2.0
        See Also:
        Span.prefix(Bytes)
      • overPrefix

        default ScannerBuilder overPrefix​(Bytes row,
                                          Column colPrefix)
        Parameters:
        row - restrict the scanner to data in an exact row.
        colPrefix - restrict scanner to data that begins with a specific Column prefix.
        Returns:
        self
        Since:
        1.2.0
        See Also:
        Span.prefix(Bytes, Column)
      • fetch

        ScannerBuilder fetch​(Column... columns)
        Passing in a Column with only the family set will fetch the entire column family.
        Parameters:
        columns - restrict the scanner to only these columns
        Returns:
        self
      • fetch

        ScannerBuilder fetch​(Collection<Column> columns)
        Passing in a Column with only the family set will fetch the entire column family.
        Parameters:
        columns - restrict the scanner to only these columns
        Returns:
        self
      • build

        CellScanner build()
        Returns:
        a new scanner created with any previously set restrictions
      • byRow

        RowScannerBuilder byRow()
        Call this to build a row scanner.
        Returns:
        a row scanner builder using any previously set restrictions