Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Record Class ExponentialHistogramArrayBlock.EncodedHistogramData
java.lang.Object
java.lang.Record
org.elasticsearch.compute.data.ExponentialHistogramArrayBlock.EncodedHistogramData
- Enclosing class:
ExponentialHistogramArrayBlock
public static record ExponentialHistogramArrayBlock.EncodedHistogramData(double count, double sum, double min, double max, double zeroThreshold, org.apache.lucene.util.BytesRef encodedHistogram)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEncodedHistogramData(double count, double sum, double min, double max, double zeroThreshold, org.apache.lucene.util.BytesRef encodedHistogram) Creates an instance of aEncodedHistogramDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublecount()Returns the value of thecountrecord component.org.apache.lucene.util.BytesRefReturns the value of theencodedHistogramrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublemax()Returns the value of themaxrecord component.doublemin()Returns the value of theminrecord component.doublesum()Returns the value of thesumrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thezeroThresholdrecord component.
-
Constructor Details
-
EncodedHistogramData
public EncodedHistogramData(double count, double sum, double min, double max, double zeroThreshold, org.apache.lucene.util.BytesRef encodedHistogram) Creates an instance of aEncodedHistogramDatarecord class.- Parameters:
count- the value for thecountrecord componentsum- the value for thesumrecord componentmin- the value for theminrecord componentmax- the value for themaxrecord componentzeroThreshold- the value for thezeroThresholdrecord componentencodedHistogram- the value for theencodedHistogramrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
count
public double count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
sum
public double sum()Returns the value of thesumrecord component.- Returns:
- the value of the
sumrecord component
-
min
public double min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public double max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
zeroThreshold
public double zeroThreshold()Returns the value of thezeroThresholdrecord component.- Returns:
- the value of the
zeroThresholdrecord component
-
encodedHistogram
public org.apache.lucene.util.BytesRef encodedHistogram()Returns the value of theencodedHistogramrecord component.- Returns:
- the value of the
encodedHistogramrecord component
-