Class ConsolidationPolicy

java.lang.Object
com.arangodb.entity.arangosearch.ConsolidationPolicy

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

    • ConsolidationPolicy

      public ConsolidationPolicy()
  • Method Details

    • of

      public static ConsolidationPolicy of(ConsolidationType type)
    • type

    • threshold

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

      public ConsolidationType getType()
    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object