Record Class DocValuesConsumerUtil.MergeStats

java.lang.Object
java.lang.Record
org.elasticsearch.index.codec.tsdb.DocValuesConsumerUtil.MergeStats
Record Components:
supported - whether optimized merge is supported
sumNumValues - total number of values across all segments
sumNumDocsWithField - total number of documents with at least one value
minLength - 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 Details

    • MergeStats

      public MergeStats(boolean supported, long sumNumValues, int sumNumDocsWithField, int minLength, int maxLength)
      Creates an instance of a MergeStats record class.
      Parameters:
      supported - the value for the supported record component
      sumNumValues - the value for the sumNumValues record component
      sumNumDocsWithField - the value for the sumNumDocsWithField record component
      minLength - the value for the minLength record component
      maxLength - the value for the maxLength record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • supported

      public boolean supported()
      Returns the value of the supported record component.
      Returns:
      the value of the supported record component
    • sumNumValues

      public long sumNumValues()
      Returns the value of the sumNumValues record component.
      Returns:
      the value of the sumNumValues record component
    • sumNumDocsWithField

      public int sumNumDocsWithField()
      Returns the value of the sumNumDocsWithField record component.
      Returns:
      the value of the sumNumDocsWithField record component
    • minLength

      public int minLength()
      Returns the value of the minLength record component.
      Returns:
      the value of the minLength record component
    • maxLength

      public int maxLength()
      Returns the value of the maxLength record component.
      Returns:
      the value of the maxLength record component