Record Class FieldAttribute.FieldName
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.core.expression.FieldAttribute.FieldName
- Enclosing class:
FieldAttribute
A field name, as found in the mapping. Includes the whole path from the root of the document.
Implemented as a wrapper around
String to distinguish from the attribute name (which sometimes differs!) at compile time.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.string()Returns the value of thestringrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FieldName
Creates an instance of aFieldNamerecord class.- Parameters:
string- the value for thestringrecord 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). -
string
Returns the value of thestringrecord component.- Returns:
- the value of the
stringrecord component
-