Module org.elasticsearch.server
Record Class TermsAggregator.ConstantBucketCountThresholds
java.lang.Object
java.lang.Record
org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator.ConstantBucketCountThresholds
- Enclosing class:
- TermsAggregator
public static record TermsAggregator.ConstantBucketCountThresholds(long minDocCount, long shardMinDocCount, int requiredSize, int shardSize)
extends Record
This class provides bucket thresholds configuration, but can be used ensure default value immutability
-
Constructor Summary
ConstructorDescriptionConstantBucketCountThresholds
(long minDocCount, long shardMinDocCount, int requiredSize, int shardSize) Creates an instance of aConstantBucketCountThresholds
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of theminDocCount
record component.int
Returns the value of therequiredSize
record component.long
Returns the value of theshardMinDocCount
record component.int
Returns the value of theshardSize
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConstantBucketCountThresholds
public ConstantBucketCountThresholds(long minDocCount, long shardMinDocCount, int requiredSize, int shardSize) Creates an instance of aConstantBucketCountThresholds
record class.- Parameters:
minDocCount
- the value for theminDocCount
record componentshardMinDocCount
- the value for theshardMinDocCount
record componentrequiredSize
- the value for therequiredSize
record componentshardSize
- the value for theshardSize
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
minDocCount
public long minDocCount()Returns the value of theminDocCount
record component.- Returns:
- the value of the
minDocCount
record component
-
shardMinDocCount
public long shardMinDocCount()Returns the value of theshardMinDocCount
record component.- Returns:
- the value of the
shardMinDocCount
record component
-
requiredSize
public int requiredSize()Returns the value of therequiredSize
record component.- Returns:
- the value of the
requiredSize
record component
-
shardSize
public int shardSize()Returns the value of theshardSize
record component.- Returns:
- the value of the
shardSize
record component
-