|
Spring Data Key-Value | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.keyvalue.redis.connection.DefaultSortParameters
public class DefaultSortParameters
Default implementation for SortParameters
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.springframework.data.keyvalue.redis.connection.SortParameters |
---|
SortParameters.Order, SortParameters.Range |
Constructor Summary | |
---|---|
DefaultSortParameters()
Constructs a new DefaultSortParameters instance. |
|
DefaultSortParameters(byte[] byPattern,
SortParameters.Range limit,
byte[] getPattern,
SortParameters.Order order,
Boolean alphabetic)
Constructs a new DefaultSortParameters instance. |
|
DefaultSortParameters(SortParameters.Range limit,
SortParameters.Order order,
Boolean alphabetic)
Constructs a new DefaultSortParameters instance. |
Method Summary | |
---|---|
SortParameters |
alpha()
|
SortParameters |
by(byte[] pattern)
|
SortParameters |
get(byte[] pattern)
|
byte[] |
getByPattern()
Returns the pattern (if set) for sorting by external keys (BY). |
byte[] |
getGetPattern()
Returns the pattern (if set) for retrieving external keys (GET). |
SortParameters.Range |
getLimit()
Returns the sorting limit (range or pagination). |
SortParameters.Order |
getOrder()
Returns the sorting order. |
Boolean |
isAlphabetic()
Indicates if the sorting is numeric (default) or alphabetical (lexicographical). |
SortParameters |
limit(long start,
long count)
|
SortParameters |
numeric()
|
SortParameters |
order(SortParameters.Order order)
|
void |
setAlphabetic(Boolean alphabetic)
|
void |
setByPattern(byte[] byPattern)
|
void |
setGetPattern(byte[] getPattern)
|
void |
setLimit(SortParameters.Range limit)
|
void |
setOrder(SortParameters.Order order)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSortParameters()
DefaultSortParameters
instance.
public DefaultSortParameters(SortParameters.Range limit, SortParameters.Order order, Boolean alphabetic)
DefaultSortParameters
instance.
limit
- order
- alphabetic
- public DefaultSortParameters(byte[] byPattern, SortParameters.Range limit, byte[] getPattern, SortParameters.Order order, Boolean alphabetic)
DefaultSortParameters
instance.
byPattern
- limit
- getPattern
- order
- alphabetic
- Method Detail |
---|
public byte[] getByPattern()
SortParameters
getByPattern
in interface SortParameters
public void setByPattern(byte[] byPattern)
public SortParameters.Range getLimit()
SortParameters
getLimit
in interface SortParameters
public void setLimit(SortParameters.Range limit)
public byte[] getGetPattern()
SortParameters
getGetPattern
in interface SortParameters
public void setGetPattern(byte[] getPattern)
public SortParameters.Order getOrder()
SortParameters
getOrder
in interface SortParameters
public void setOrder(SortParameters.Order order)
public Boolean isAlphabetic()
SortParameters
isAlphabetic
in interface SortParameters
public void setAlphabetic(Boolean alphabetic)
public SortParameters order(SortParameters.Order order)
public SortParameters alpha()
public SortParameters numeric()
public SortParameters get(byte[] pattern)
public SortParameters by(byte[] pattern)
public SortParameters limit(long start, long count)
|
Spring Data Key-Value | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |