Module org.elasticsearch.compute
Record Class MetricFieldInfo
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.MetricFieldInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldTyperecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theindexNamerecord component.Returns the value of themetricTyperecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.
-
Constructor Details
-
MetricFieldInfo
public MetricFieldInfo(String name, String indexName, String fieldType, String metricType, String unit) Creates an instance of aMetricFieldInforecord class.- Parameters:
name- the value for thenamerecord componentindexName- the value for theindexNamerecord componentfieldType- the value for thefieldTyperecord componentmetricType- the value for themetricTyperecord componentunit- the value for theunitrecord 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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
indexName
Returns the value of theindexNamerecord component.- Returns:
- the value of the
indexNamerecord component
-
fieldType
Returns the value of thefieldTyperecord component.- Returns:
- the value of the
fieldTyperecord component
-
metricType
Returns the value of themetricTyperecord component.- Returns:
- the value of the
metricTyperecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-