Class DfsReaderOptions


  • public class DfsReaderOptions
    extends Object
    Options controlling how objects are read from a DFS stored repository.
    • Field Detail

      • KiB

        public static final int KiB
        1024 (number of bytes in one kibibyte/kilobyte)
        See Also:
        Constant Field Values
    • Constructor Detail

      • DfsReaderOptions

        public DfsReaderOptions()
        Create a default reader configuration.
    • Method Detail

      • getDeltaBaseCacheLimit

        public int getDeltaBaseCacheLimit()
        Returns:
        maximum number of bytes to hold in per-reader DeltaBaseCache.
      • setDeltaBaseCacheLimit

        public DfsReaderOptions setDeltaBaseCacheLimit​(int maxBytes)
        Set the maximum number of bytes in the DeltaBaseCache.
        Parameters:
        maxBytes - the new limit.
        Returns:
        this
      • getStreamFileThreshold

        public int getStreamFileThreshold()
        Returns:
        the size threshold beyond which objects must be streamed.
      • setStreamFileThreshold

        public DfsReaderOptions setStreamFileThreshold​(int newLimit)
        Parameters:
        newLimit - new byte limit for objects that must be streamed. Objects smaller than this size can be obtained as a contiguous byte array, while objects bigger than this size require using an ObjectStream.
        Returns:
        this
      • fromConfig

        public DfsReaderOptions fromConfig​(Config rc)
        Update properties by setting fields from the configuration.

        If a property is not defined in the configuration, then it is left unmodified.

        Parameters:
        rc - configuration to read properties from.
        Returns:
        this