Class ConsolidationPolicy


  • public final class ConsolidationPolicy
    extends Object
    Author:
    Mark Vollmary
    • Constructor Detail

      • ConsolidationPolicy

        public ConsolidationPolicy()
    • Method Detail

      • threshold

        public ConsolidationPolicy threshold​(Double threshold)
        Parameters:
        threshold - value in the range [0.0, 1.0]
        Returns:
        this
      • getThreshold

        public Double getThreshold()
      • getSegmentsMin

        public Long getSegmentsMin()
      • segmentsMin

        public ConsolidationPolicy segmentsMin​(Long segmentsMin)
        Parameters:
        segmentsMin - The minimum number of segments that will be evaluated as candidates for consolidation. (default: 1)
        Returns:
        this
      • getSegmentsMax

        public Long getSegmentsMax()
      • segmentsMax

        public ConsolidationPolicy segmentsMax​(Long segmentsMax)
        Parameters:
        segmentsMax - The maximum number of segments that will be evaluated as candidates for consolidation. (default: 10)
        Returns:
        this
      • getSegmentsBytesMax

        public Long getSegmentsBytesMax()
      • segmentsBytesMax

        public ConsolidationPolicy segmentsBytesMax​(Long segmentsBytesMax)
        Parameters:
        segmentsBytesMax - Maximum allowed size of all consolidated segments in bytes. (default: 5368709120)
        Returns:
        this
      • getSegmentsBytesFloor

        public Long getSegmentsBytesFloor()
      • segmentsBytesFloor

        public ConsolidationPolicy segmentsBytesFloor​(Long segmentsBytesFloor)
        Parameters:
        segmentsBytesFloor - Defines the value (in bytes) to treat all smaller segments as equal for consolidation selection. (default: 2097152)
        Returns:
        this
      • getMinScore

        public Long getMinScore()
      • minScore

        public ConsolidationPolicy minScore​(Long minScore)
        Parameters:
        minScore - Filter out consolidation candidates with a score less than this. (default: 0)
        Returns:
        this
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object