Package com.arangodb.entity.arangosearch
Class ConsolidationPolicy
java.lang.Object
com.arangodb.entity.arangosearch.ConsolidationPolicy
- Author:
- Mark Vollmary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getType()
int
hashCode()
static ConsolidationPolicy
of
(ConsolidationType type) segmentsBytesFloor
(Long segmentsBytesFloor) segmentsBytesMax
(Long segmentsBytesMax) segmentsMax
(Long segmentsMax) segmentsMin
(Long segmentsMin) type
(ConsolidationType type)
-
Constructor Details
-
ConsolidationPolicy
public ConsolidationPolicy()
-
-
Method Details
-
of
-
type
-
threshold
- Parameters:
threshold
- value in the range [0.0, 1.0]- Returns:
- this
-
getType
-
getThreshold
-
getSegmentsMin
-
segmentsMin
- Parameters:
segmentsMin
- The minimum number of segments that will be evaluated as candidates for consolidation. (default: 1)- Returns:
- this
-
getSegmentsMax
-
segmentsMax
- Parameters:
segmentsMax
- The maximum number of segments that will be evaluated as candidates for consolidation. (default: 10)- Returns:
- this
-
getSegmentsBytesMax
-
segmentsBytesMax
- Parameters:
segmentsBytesMax
- Maximum allowed size of all consolidated segments in bytes. (default: 5368709120)- Returns:
- this
-
getSegmentsBytesFloor
-
segmentsBytesFloor
- Parameters:
segmentsBytesFloor
- Defines the value (in bytes) to treat all smaller segments as equal for consolidation selection. (default: 2097152)- Returns:
- this
-
getMinScore
-
minScore
- Parameters:
minScore
- Filter out consolidation candidates with a score less than this. (default: 0)- Returns:
- this
-
equals
-
hashCode
public int hashCode()
-