| Constructor and Description |
|---|
SortingParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParams(CommandArguments args) |
SortingParams |
alpha()
Sort lexicographicaly.
|
SortingParams |
asc()
Get the Sorting in Ascending Order.
|
SortingParams |
by(byte[] pattern)
Sort by weight in keys.
|
SortingParams |
by(java.lang.String pattern)
Sort by weight in keys.
|
SortingParams |
desc()
Get the Sorting in Descending Order.
|
boolean |
equals(java.lang.Object o) |
SortingParams |
get(byte[]... patterns)
Retrieving external keys from the result of the search.
|
SortingParams |
get(java.lang.String... patterns)
Retrieving external keys from the result of the search.
|
int |
hashCode() |
SortingParams |
limit(int start,
int count)
Limit the Numbers of returned Elements.
|
SortingParams |
nosort()
No sorting.
|
SortingParams |
sortingOrder(SortingOrder order)
Get by the Sorting Order.
|
public SortingParams by(java.lang.String pattern)
Takes a pattern that is used in order to generate the key names of the weights used for sorting. Weight key names are obtained substituting the first occurrence of * with the actual value of the elements on the list.
The pattern for a normal key/value pair is "field*" and for a value in a hash "field*->fieldname".
pattern - public SortingParams by(byte[] pattern)
Takes a pattern that is used in order to generate the key names of the weights used for sorting. Weight key names are obtained substituting the first occurrence of * with the actual value of the elements on the list.
The pattern for a normal key/value pair is "field*" and for a value in a hash "field*->fieldname".
pattern - public SortingParams nosort()
This is useful if you want to retrieve an external key (using GET) but
you don't want the sorting overhead.
public SortingParams desc()
public SortingParams asc()
public SortingParams sortingOrder(SortingOrder order)
order - the Sorting orderpublic SortingParams limit(int start, int count)
start - is zero basedcount - public SortingParams alpha()
public SortingParams get(java.lang.String... patterns)
Takes a pattern that is used in order to generate the key names of the result of sorting. The key names are obtained substituting the first occurrence of * with the actual value of the elements on the list.
The pattern for a normal key/value pair is "field*" and for a value in a hash "field*->fieldname".
To get the list itself use the char # as pattern.
patterns - public SortingParams get(byte[]... patterns)
Takes a pattern that is used in order to generate the key names of the result of sorting. The key names are obtained substituting the first occurrence of * with the actual value of the elements on the list.
The pattern for a normal key/value pair is "field*" and for a value in a hash "field*->fieldname".
To get the list itself use the char # as pattern.
patterns - public void addParams(CommandArguments args)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2025. All rights reserved.