Interface RFile.ScannerOptions

  • All Known Subinterfaces:
    RFile.ScannerFSOptions
    Enclosing class:
    RFile

    public static interface RFile.ScannerOptions
    This is an intermediate interface in a larger builder pattern. Supports setting optional parameters for reading RFile(s) and building a scanner over RFile(s).
    Since:
    1.8.0
    • Method Detail

      • withAuthorizations

        RFile.ScannerOptions withAuthorizations​(Authorizations auths)
        The authorizations passed here will be used to filter Keys, from the Scanner, based on the content of the column visibility field.
        Parameters:
        auths - scan with these authorizations
        Returns:
        this
      • withDataCache

        RFile.ScannerOptions withDataCache​(long cacheSize)
        Enabling this option will cache RFiles data in memory. This option is useful when doing lots of random accesses.
        Parameters:
        cacheSize - the size of the data cache in bytes.
        Returns:
        this
      • withIndexCache

        RFile.ScannerOptions withIndexCache​(long cacheSize)
        Enabling this option will cache RFiles indexes in memory. Index data within a RFile is used to find data when seeking to a Key. This option is useful when doing lots of random accesses.
        Parameters:
        cacheSize - the size of the index cache in bytes.
        Returns:
        this
      • withBounds

        RFile.ScannerOptions withBounds​(Range range)
        This option allows limiting the Scanner from reading data outside of a given range. A scanner will not see any data outside of this range even if the RFile(s) have data outside the range.
        Returns:
        this
      • build

        Scanner build()
        Returns:
        a Scanner over RFile using the specified options.