Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Record Class AggregateMetricDoubleBlockBuilder.AggregateMetricDoubleLiteral
java.lang.Object
java.lang.Record
org.elasticsearch.compute.data.AggregateMetricDoubleBlockBuilder.AggregateMetricDoubleLiteral
- All Implemented Interfaces:
GenericNamedWriteable,NamedWriteable,VersionedNamedWriteable,Writeable
- Enclosing class:
AggregateMetricDoubleBlockBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAggregateMetricDoubleLiteral(Double min, Double max, Double sum, Integer count) Creates an instance of aAggregateMetricDoubleLiteralrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.sum()Returns the value of thesumrecord component.booleansupportsVersion(TransportVersion version) final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out)
-
Field Details
-
ENTRY
-
-
Constructor Details
-
AggregateMetricDoubleLiteral
Creates an instance of aAggregateMetricDoubleLiteralrecord class.- Parameters:
min- the value for theminrecord componentmax- the value for themaxrecord componentsum- the value for thesumrecord componentcount- the value for thecountrecord component
-
AggregateMetricDoubleLiteral
- Throws:
IOException
-
-
Method Details
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
supportsVersion
- Specified by:
supportsVersionin interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
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 withObjects::equals(Object,Object). -
min
Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
sum
Returns the value of thesumrecord component.- Returns:
- the value of the
sumrecord component
-
count
Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-