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
Modifier and TypeClassDescriptionstatic class
static class
An attribute (field) and how it should be sortedstatic class
static enum
static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
int
encode
(ByteBuffer buffer) boolean
Returns the field orders of this sort specification as list.static Sorting
fromString
(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)int
hashCode()
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
-
encode
-