Record Class EsQueryExec.ScoreSort
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.plan.physical.EsQueryExec.ScoreSort
- All Implemented Interfaces:
EsQueryExec.Sort
- Enclosing class:
EsQueryExec
public static record EsQueryExec.ScoreSort(Order.OrderDirection direction)
extends Record
implements EsQueryExec.Sort
-
Constructor Summary
ConstructorsConstructorDescriptionScoreSort(Order.OrderDirection direction) Creates an instance of aScoreSortrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.field()final inthashCode()Returns a hash code value for this object.Type of the result of the sort.SortBuilder<?> final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScoreSort
Creates an instance of aScoreSortrecord class.- Parameters:
direction- the value for thedirectionrecord component
-
-
Method Details
-
sortBuilder
- Specified by:
sortBuilderin interfaceEsQueryExec.Sort
-
field
- Specified by:
fieldin interfaceEsQueryExec.Sort
-
resulType
Description copied from interface:EsQueryExec.SortType of the result of the sort. For example, geo distance will beDataType.DOUBLE.- Specified by:
resulTypein 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). -
direction
Returns the value of thedirectionrecord component.- Specified by:
directionin interfaceEsQueryExec.Sort- Returns:
- the value of the
directionrecord component
-