Query.Support| Modifier and Type | Field and Description |
|---|---|
private java.util.List<byte[]> |
alphaSpec |
static byte |
ASCII_ZERO |
private java.util.List<byte[]> |
bySpec |
static byte |
COUNT_BYTE |
static byte[] |
CRLF |
static int |
CRLF_LEN |
static int |
DELIMETER_LEN |
private java.util.List<byte[]> |
descSpec |
static byte |
ERR_BYTE |
private java.util.List<byte[]> |
getSpec |
protected byte[] |
keyBytes |
private java.util.List<byte[]> |
limitSpec |
static byte |
NUM_BYTE |
static byte |
OK_BYTE |
static byte |
SIZE_BYTE |
static byte[] |
SPACE |
protected boolean |
stores |
private java.util.List<byte[]> |
storeSpec |
| Modifier | Constructor and Description |
|---|---|
protected |
SortSupport(byte[] validatedKeyBytes) |
| Modifier and Type | Method and Description |
|---|---|
Sort |
ALPHA()
sort is be default numeric -- use this to indicate lexiographic alphanumeric sort
|
private byte[][] |
buildSortCmd() |
<K> Sort |
BY(K pattern)
species the BY clause
|
Sort |
DESC()
default sort is ASCending -- use this in your sort to specify DESC sort
|
java.util.List<byte[]> |
exec()
Executes the query.
|
java.util.concurrent.Future<java.util.List<byte[]>> |
execAsync() |
protected abstract java.util.concurrent.Future<java.util.List<byte[]>> |
execAsyncSort(byte[]... fullSortCmd) |
protected abstract java.util.concurrent.Future<java.util.List<byte[]>> |
execAsyncSortStore(byte[]... fullSortCmd) |
protected abstract java.util.List<byte[]> |
execSort(byte[]... fullSortCmd) |
protected abstract java.util.List<byte[]> |
execSortStore(byte[]... fullSortCmd) |
<K> Sort |
GET(K pattern)
specifies the GET clause
|
Sort |
LIMIT(long from,
long count)
Specifies the LIMIT class: from is the initial index, count is the number of results
|
<K> Sort |
STORE(K destKey)
Store the sort results in another key
|
protected volatile boolean stores
protected final byte[] keyBytes
public static final byte[] CRLF
public static final byte[] SPACE
public static final int CRLF_LEN
public static final int DELIMETER_LEN
public static final byte ERR_BYTE
public static final byte OK_BYTE
public static final byte COUNT_BYTE
public static final byte SIZE_BYTE
public static final byte NUM_BYTE
public static final byte ASCII_ZERO
private java.util.List<byte[]> alphaSpec
private java.util.List<byte[]> descSpec
private java.util.List<byte[]> getSpec
private java.util.List<byte[]> bySpec
private java.util.List<byte[]> limitSpec
private java.util.List<byte[]> storeSpec
public Sort ALPHA()
Sortpublic Sort DESC()
Sortpublic Sort LIMIT(long from, long count)
Sortpublic <K> Sort STORE(K destKey)
private final byte[][] buildSortCmd()
public java.util.List<byte[]> exec()
throws java.lang.IllegalStateException,
RedisException
Queryexec in interface Queryjava.lang.IllegalStateExceptionRedisExceptionpublic java.util.concurrent.Future<java.util.List<byte[]>> execAsync()
protected abstract java.util.List<byte[]> execSort(byte[]... fullSortCmd)
throws java.lang.IllegalStateException,
RedisException
java.lang.IllegalStateExceptionRedisExceptionprotected abstract java.util.List<byte[]> execSortStore(byte[]... fullSortCmd)
throws java.lang.IllegalStateException,
RedisException
java.lang.IllegalStateExceptionRedisExceptionprotected abstract java.util.concurrent.Future<java.util.List<byte[]>> execAsyncSort(byte[]... fullSortCmd)
protected abstract java.util.concurrent.Future<java.util.List<byte[]>> execAsyncSortStore(byte[]... fullSortCmd)