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
ConstructorsConstructorDescriptionConstantBucketCountThresholds(long minDocCount, long shardMinDocCount, int requiredSize, int shardSize) Creates an instance of aConstantBucketCountThresholdsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theminDocCountrecord component.intReturns the value of therequiredSizerecord component.longReturns the value of theshardMinDocCountrecord component.intReturns the value of theshardSizerecord component.final StringtoString()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 aConstantBucketCountThresholdsrecord class.- Parameters:
minDocCount- the value for theminDocCountrecord componentshardMinDocCount- the value for theshardMinDocCountrecord componentrequiredSize- the value for therequiredSizerecord componentshardSize- the value for theshardSizerecord 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 theminDocCountrecord component.- Returns:
- the value of the
minDocCountrecord component
-
shardMinDocCount
public long shardMinDocCount()Returns the value of theshardMinDocCountrecord component.- Returns:
- the value of the
shardMinDocCountrecord component
-
requiredSize
public int requiredSize()Returns the value of therequiredSizerecord component.- Returns:
- the value of the
requiredSizerecord component
-
shardSize
public int shardSize()Returns the value of theshardSizerecord component.- Returns:
- the value of the
shardSizerecord component
-