Query.Support
Modifier and Type | Field and Description |
---|---|
static byte |
ASCII_ZERO |
static byte |
COUNT_BYTE |
static byte[] |
CRLF |
static int |
CRLF_LEN |
static int |
DELIMETER_LEN |
static byte |
ERR_BYTE |
protected byte[] |
keyBytes |
static byte |
NUM_BYTE |
static byte |
OK_BYTE |
static byte |
SIZE_BYTE |
static byte[] |
SPACE |
protected boolean |
stores |
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
|
<K> Sort |
BY(K pattern)
species the BY clause
|
Sort |
DESC()
default sort is ASCending -- use this in your sort to specify DESC sort
|
List<byte[]> |
exec()
Executes the query.
|
Future<List<byte[]>> |
execAsync() |
protected abstract Future<List<byte[]>> |
execAsyncSort(byte[]... fullSortCmd) |
protected abstract Future<List<byte[]>> |
execAsyncSortStore(byte[]... fullSortCmd) |
protected abstract List<byte[]> |
execSort(byte[]... fullSortCmd) |
protected abstract 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
public Sort ALPHA()
Sort
public Sort DESC()
Sort
public Sort LIMIT(long from, long count)
Sort
public <K> Sort STORE(K destKey)
public List<byte[]> exec() throws IllegalStateException, RedisException
Query
exec
in interface Query
IllegalStateException
RedisException
protected abstract List<byte[]> execSort(byte[]... fullSortCmd) throws IllegalStateException, RedisException
IllegalStateException
RedisException
protected abstract List<byte[]> execSortStore(byte[]... fullSortCmd) throws IllegalStateException, RedisException
IllegalStateException
RedisException
Copyright © 2009–2019. All rights reserved.