Package redis.clients.jedis.params
Class ScanParams
- java.lang.Object
-
- redis.clients.jedis.params.ScanParams
-
public class ScanParams extends java.lang.ObjectParameters for SCAN command in Jedis compatibility layer.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSCAN_POINTER_STARTstatic byte[]SCAN_POINTER_START_BINARY
-
Constructor Summary
Constructors Constructor Description ScanParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScanParamscount(int count)Set the COUNT hint for the scan.java.lang.LonggetCount()Get the count hint.java.lang.StringgetMatchPattern()Get the match pattern.java.lang.StringgetType()Get the type filter.ScanParamsmatch(byte[] pattern)Set the MATCH pattern for the scan.ScanParamsmatch(java.lang.String pattern)Set the MATCH pattern for the scan.ScanParamstype(java.lang.String type)Set the TYPE filter for the scan.
-
-
-
Field Detail
-
SCAN_POINTER_START
public static final java.lang.String SCAN_POINTER_START
- See Also:
- Constant Field Values
-
SCAN_POINTER_START_BINARY
public static final byte[] SCAN_POINTER_START_BINARY
-
-
Method Detail
-
match
public ScanParams match(java.lang.String pattern)
Set the MATCH pattern for the scan.- Parameters:
pattern- the pattern to match- Returns:
- this ScanParams instance
-
match
public ScanParams match(byte[] pattern)
Set the MATCH pattern for the scan.- Parameters:
pattern- the pattern to match- Returns:
- this ScanParams instance
-
count
public ScanParams count(int count)
Set the COUNT hint for the scan.- Parameters:
count- the count hint- Returns:
- this ScanParams instance
-
type
public ScanParams type(java.lang.String type)
Set the TYPE filter for the scan.- Parameters:
type- the type to filter by- Returns:
- this ScanParams instance
-
getMatchPattern
public java.lang.String getMatchPattern()
Get the match pattern.- Returns:
- the match pattern
-
getCount
public java.lang.Long getCount()
Get the count hint.- Returns:
- the count hint
-
getType
public java.lang.String getType()
Get the type filter.- Returns:
- the type filter
-
-