Package com.yahoo.search.query
Class Sorting
java.lang.Object
com.yahoo.search.query.Sorting
- All Implemented Interfaces:
Cloneable
Specifies how a query is sorted by a list of fields with a sort order
- Author:
- Arne Bergene Fossaa
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classAn attribute (field) and how it should be sortedstatic classstatic enumstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intencode(ByteBuffer buffer) booleanReturns the field orders of this sort specification as list.static SortingfromString(String sortSpec) Creates a new sorting from the given string and returns it, or returns null if the argument does not contain any sorting criteria (e.g it is null or the empty string)inthashCode()toString()
-
Field Details
-
STRENGTH_IDENTICAL
- See Also:
-
STRENGTH_QUATERNARY
- See Also:
-
STRENGTH_TERTIARY
- See Also:
-
STRENGTH_SECONDARY
- See Also:
-
STRENGTH_PRIMARY
- See Also:
-
UCA
- See Also:
-
RAW
- See Also:
-
LOWERCASE
- See Also:
-
-
Constructor Details
-
Sorting
public Sorting()Creates an empty sort spec -
Sorting
-
Sorting
Creates a sort spec from a string -
Sorting
Creates a sort spec from a string, for a given query.
-
-
Method Details
-
fromString
Creates a new sorting from the given string and returns it, or returns null if the argument does not contain any sorting criteria (e.g it is null or the empty string) -
toString
-
fieldOrders
Returns the field orders of this sort specification as list. This is never null but can be empty. This list can be modified to change this sort spec. -
clone
-
hashCode
public int hashCode() -
equals
-
toSerialForm
-
encode
-