Package com.yahoo.search.query
Class Sorting.FieldOrder
java.lang.Object
com.yahoo.search.query.Sorting.FieldOrder
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Sorting
An attribute (field) and how it should be sorted
-
Constructor Summary
ConstructorDescriptionFieldOrder
(Sorting.AttributeSorter fieldSorter, Sorting.Order sortOrder) Creates an attribute vector -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Returns the name of this attributeReturns the sorter of this attributeReturns the sorting order of this attributeint
hashCode()
void
setAscending
(boolean asc) Decide if sortorder is ascending or not.void
setSorter
(Sorting.AttributeSorter sorter) toString()
-
Constructor Details
-
FieldOrder
Creates an attribute vector- Parameters:
fieldSorter
- the sorter of this attributesortOrder
- whether to sort this ascending or descending
-
-
Method Details
-
getFieldName
Returns the name of this attribute -
getSorter
Returns the sorter of this attribute -
setSorter
-
getSortOrder
Returns the sorting order of this attribute -
setAscending
public void setAscending(boolean asc) Decide if sortorder is ascending or not. -
toString
-
hashCode
public int hashCode() -
equals
-
clone
-