Class SortOrder

java.lang.Object
org.imixs.workflow.engine.index.SortOrder

public class SortOrder extends Object
Stores information about how to sort documents by terms by an individual field. Fields must be indexed in order to sort by them.
Version:
1.0
  • Constructor Details

    • SortOrder

      public SortOrder(String field, boolean reverse)
      Creates a sort, possibly in reverse, with a custom comparison function.
      Parameters:
      field - Name of field to sort by; cannot be null.
      comparator - Returns a comparator for sorting hits.
      reverse - True if natural order should be reversed.
  • Method Details

    • isReverse

      public boolean isReverse()
    • setReverse

      public void setReverse(boolean reverse)
    • getField

      public String getField()
    • setField

      public void setField(String field)
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object