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
ConstructorsConstructorDescriptionFieldOrder(Sorting.AttributeSorter fieldSorter, Sorting.Order sortOrder) Creates an attribute vector -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanReturns the name of this attributeReturns the sorter of this attributeReturns the sorting order of this attributeinthashCode()voidsetAscending(boolean asc) Decide if sortorder is ascending or not.voidsetSorter(Sorting.AttributeSorter sorter) toSerialForm(boolean includeOrder) 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 -
toSerialForm
-
setAscending
public void setAscending(boolean asc) Decide if sortorder is ascending or not. -
toString
-
hashCode
public int hashCode() -
equals
-
clone
-