Package com.yahoo.search.query
Class Sorting.FieldOrder
- java.lang.Object
-
- com.yahoo.search.query.Sorting.FieldOrder
-
-
Constructor Summary
Constructors Constructor Description FieldOrder(Sorting.AttributeSorter fieldSorter, Sorting.Order sortOrder)
Creates an attribute vector
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sorting.FieldOrder
clone()
boolean
equals(Object other)
String
getFieldName()
Returns the name of this attributeSorting.AttributeSorter
getSorter()
Returns the sorter of this attributeSorting.Order
getSortOrder()
Returns the sorting order of this attributeint
hashCode()
void
setAscending(boolean asc)
Decide if sortorder is ascending or not.void
setSorter(Sorting.AttributeSorter sorter)
String
toString()
-
-
-
Constructor Detail
-
FieldOrder
public FieldOrder(Sorting.AttributeSorter fieldSorter, Sorting.Order sortOrder)
Creates an attribute vector- Parameters:
fieldSorter
- the sorter of this attributesortOrder
- whether to sort this ascending or descending
-
-
Method Detail
-
getFieldName
public String getFieldName()
Returns the name of this attribute
-
getSorter
public Sorting.AttributeSorter getSorter()
Returns the sorter of this attribute
-
setSorter
public void setSorter(Sorting.AttributeSorter sorter)
-
getSortOrder
public Sorting.Order getSortOrder()
Returns the sorting order of this attribute
-
setAscending
public void setAscending(boolean asc)
Decide if sortorder is ascending or not.
-
clone
public Sorting.FieldOrder clone()
-
-