Class Sorting.FieldOrder

java.lang.Object
com.yahoo.search.query.Sorting.FieldOrder
All Implemented Interfaces:
Cloneable
Enclosing class:
Sorting

public static class Sorting.FieldOrder extends Object implements Cloneable
An attribute (field) and how it should be sorted
  • Constructor Details

    • FieldOrder

      public FieldOrder(Sorting.AttributeSorter fieldSorter, Sorting.Order sortOrder)
      Creates an attribute vector
      Parameters:
      fieldSorter - the sorter of this attribute
      sortOrder - whether to sort this ascending or descending
  • Method Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • clone

      public Sorting.FieldOrder clone()
      Overrides:
      clone in class Object