Record Class EsQueryExec.FieldSort
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.plan.physical.EsQueryExec.FieldSort
- All Implemented Interfaces:
EsQueryExec.Sort
- Enclosing class:
EsQueryExec
public static record EsQueryExec.FieldSort(FieldAttribute field, Order.OrderDirection direction, Order.NullsPosition nulls)
extends Record
implements EsQueryExec.Sort
-
Constructor Summary
ConstructorsConstructorDescriptionFieldSort(FieldAttribute field, Order.OrderDirection direction, Order.NullsPosition nulls) Creates an instance of aFieldSortrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.nulls()Returns the value of thenullsrecord component.SortBuilder<?> final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FieldSort
Creates an instance of aFieldSortrecord class.- Parameters:
field- the value for thefieldrecord componentdirection- the value for thedirectionrecord componentnulls- the value for thenullsrecord component
-
-
Method Details
-
sortBuilder
- Specified by:
sortBuilderin interfaceEsQueryExec.Sort
-
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). -
field
Returns the value of thefieldrecord component.- Specified by:
fieldin interfaceEsQueryExec.Sort- Returns:
- the value of the
fieldrecord component
-
direction
Returns the value of thedirectionrecord component.- Specified by:
directionin interfaceEsQueryExec.Sort- Returns:
- the value of the
directionrecord component
-
nulls
Returns the value of thenullsrecord component.- Returns:
- the value of the
nullsrecord component
-