Package com.yahoo.search.query
Class Sorting.FieldOrder
- java.lang.Object
-
- com.yahoo.search.query.Sorting.FieldOrder
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- Sorting
public static class Sorting.FieldOrder extends java.lang.Object implements java.lang.Cloneable
An attribute (field) and how it should be sorted
-
-
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(java.lang.Object other)
java.lang.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)
java.lang.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 java.lang.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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
clone
public Sorting.FieldOrder clone()
- Overrides:
clone
in classjava.lang.Object
-
-