Package com.yahoo.search.query
Class Sorting
- java.lang.Object
-
- com.yahoo.search.query.Sorting
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Sorting.AttributeSorter
static class
Sorting.FieldOrder
An attribute (field) and how it should be sortedstatic class
Sorting.LowerCaseSorter
static class
Sorting.Order
static class
Sorting.RawSorter
static class
Sorting.UcaSorter
-
Field Summary
Fields Modifier and Type Field Description static String
LOWERCASE
static String
RAW
static String
STRENGTH_IDENTICAL
static String
STRENGTH_PRIMARY
static String
STRENGTH_QUATERNARY
static String
STRENGTH_SECONDARY
static String
STRENGTH_TERTIARY
static String
UCA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Sorting
clone()
int
encode(ByteBuffer buffer)
boolean
equals(Object o)
List<Sorting.FieldOrder>
fieldOrders()
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()
String
toString()
-
-
-
Field Detail
-
STRENGTH_IDENTICAL
public static final String STRENGTH_IDENTICAL
- See Also:
- Constant Field Values
-
STRENGTH_QUATERNARY
public static final String STRENGTH_QUATERNARY
- See Also:
- Constant Field Values
-
STRENGTH_TERTIARY
public static final String STRENGTH_TERTIARY
- See Also:
- Constant Field Values
-
STRENGTH_SECONDARY
public static final String STRENGTH_SECONDARY
- See Also:
- Constant Field Values
-
STRENGTH_PRIMARY
public static final String STRENGTH_PRIMARY
- See Also:
- Constant Field Values
-
UCA
public static final String UCA
- See Also:
- Constant Field Values
-
RAW
public static final String RAW
- See Also:
- Constant Field Values
-
LOWERCASE
public static final String LOWERCASE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Sorting
public Sorting()
Creates an empty sort spec
-
Sorting
public Sorting(List<Sorting.FieldOrder> fieldOrders)
-
Sorting
public Sorting(String sortSpec)
Creates a sort spec from a string
-
-
Method Detail
-
fromString
public 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)
-
fieldOrders
public List<Sorting.FieldOrder> 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.
-
encode
public int encode(ByteBuffer buffer)
-
-