Package com.arangodb.entity.arangosearch
Class ConsolidationPolicy
- java.lang.Object
-
- com.arangodb.entity.arangosearch.ConsolidationPolicy
-
public final class ConsolidationPolicy extends Object
- Author:
- Mark Vollmary
-
-
Constructor Summary
Constructors Constructor Description ConsolidationPolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LonggetMinScore()LonggetSegmentsBytesFloor()LonggetSegmentsBytesMax()LonggetSegmentsMax()LonggetSegmentsMin()DoublegetThreshold()ConsolidationTypegetType()inthashCode()ConsolidationPolicyminScore(Long minScore)static ConsolidationPolicyof(ConsolidationType type)ConsolidationPolicysegmentsBytesFloor(Long segmentsBytesFloor)ConsolidationPolicysegmentsBytesMax(Long segmentsBytesMax)ConsolidationPolicysegmentsMax(Long segmentsMax)ConsolidationPolicysegmentsMin(Long segmentsMin)ConsolidationPolicythreshold(Double threshold)ConsolidationPolicytype(ConsolidationType type)
-
-
-
Method Detail
-
of
public static ConsolidationPolicy of(ConsolidationType type)
-
type
public ConsolidationPolicy type(ConsolidationType 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
-
-