Module org.elasticsearch.server
Record Class AggregationPath.PathElement
java.lang.Object
java.lang.Record
org.elasticsearch.search.aggregations.support.AggregationPath.PathElement
- Enclosing class:
AggregationPath
-
Constructor Summary
ConstructorsConstructorDescriptionPathElement(String fullName, String name, String key, String metric) Creates an instance of aPathElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.fullName()Returns the value of thefullNamerecord component.inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.metric()Returns the value of themetricrecord component.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
PathElement
Creates an instance of aPathElementrecord class.- Parameters:
fullName- the value for thefullNamerecord componentname- the value for thenamerecord componentkey- the value for thekeyrecord componentmetric- the value for themetricrecord component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
fullName
Returns the value of thefullNamerecord component.- Returns:
- the value of the
fullNamerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-