Record Class QueryPlan.OrderBy
java.lang.Object
java.lang.Record
com.loomcache.server.query.QueryPlan.OrderBy
- Record Components:
columnName- the column to sort by (non-null, non-empty)ascending- true for ASC, false for DESC
- Enclosing class:
QueryPlan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theascendingrecord component.Returns the value of thecolumnNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderBy
Creates an instance of aOrderByrecord class.- Parameters:
columnName- the value for thecolumnNamerecord componentascending- the value for theascendingrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
ascending
-