Module org.elasticsearch.server
Record Class DocValuesConsumerUtil.MergeStats
java.lang.Object
java.lang.Record
org.elasticsearch.index.codec.tsdb.DocValuesConsumerUtil.MergeStats
- Record Components:
supported- whether optimized merge is supportedsumNumValues- total number of values across all segmentssumNumDocsWithField- total number of documents with at least one valueminLength- minimum binary value length (binary fields only)maxLength- maximum binary value length (binary fields only)
- Enclosing class:
DocValuesConsumerUtil
public static record DocValuesConsumerUtil.MergeStats(boolean supported, long sumNumValues, int sumNumDocsWithField, int minLength, int maxLength)
extends Record
Pre-computed statistics for a field across all segments being merged.
-
Constructor Summary
ConstructorsConstructorDescriptionMergeStats(boolean supported, long sumNumValues, int sumNumDocsWithField, int minLength, int maxLength) Creates an instance of aMergeStatsrecord 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.intReturns the value of themaxLengthrecord component.intReturns the value of theminLengthrecord component.intReturns the value of thesumNumDocsWithFieldrecord component.longReturns the value of thesumNumValuesrecord component.booleanReturns the value of thesupportedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MergeStats
public MergeStats(boolean supported, long sumNumValues, int sumNumDocsWithField, int minLength, int maxLength) Creates an instance of aMergeStatsrecord class.- Parameters:
supported- the value for thesupportedrecord componentsumNumValues- the value for thesumNumValuesrecord componentsumNumDocsWithField- the value for thesumNumDocsWithFieldrecord componentminLength- the value for theminLengthrecord componentmaxLength- the value for themaxLengthrecord 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 '=='. -
supported
public boolean supported()Returns the value of thesupportedrecord component.- Returns:
- the value of the
supportedrecord component
-
sumNumValues
public long sumNumValues()Returns the value of thesumNumValuesrecord component.- Returns:
- the value of the
sumNumValuesrecord component
-
sumNumDocsWithField
public int sumNumDocsWithField()Returns the value of thesumNumDocsWithFieldrecord component.- Returns:
- the value of the
sumNumDocsWithFieldrecord component
-
minLength
public int minLength()Returns the value of theminLengthrecord component.- Returns:
- the value of the
minLengthrecord component
-
maxLength
public int maxLength()Returns the value of themaxLengthrecord component.- Returns:
- the value of the
maxLengthrecord component
-