Class ScanOptions.ScanOptionsBuilder
java.lang.Object
org.springframework.data.redis.core.ScanOptions.ScanOptionsBuilder
- Enclosing class:
- ScanOptions
- Since:
- 1.4
- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newScanOptionsobjects.count(long count) Returns the currentScanOptions.ScanOptionsBuilderconfigured with the givencount.match(byte[] pattern) Returns the currentScanOptions.ScanOptionsBuilderconfigured with the givenpattern.Returns the currentScanOptions.ScanOptionsBuilderconfigured with the givenpattern.Returns the currentScanOptions.ScanOptionsBuilderconfigured with the giventype.Returns the currentScanOptions.ScanOptionsBuilderconfigured with the giventype.
-
Method Details
-
count
Returns the currentScanOptions.ScanOptionsBuilderconfigured with the givencount.- Parameters:
count-- Returns:
- this.
-
match
Returns the currentScanOptions.ScanOptionsBuilderconfigured with the givenpattern.- Parameters:
pattern-- Returns:
- this.
-
match
Returns the currentScanOptions.ScanOptionsBuilderconfigured with the givenpattern.- Parameters:
pattern-- Returns:
- this.
- Since:
- 2.6
-
type
Returns the currentScanOptions.ScanOptionsBuilderconfigured with the giventype.
Please verify the the targeted command supports the TYPE option before use.- Parameters:
type- must not be null. Either do not set or useDataType.NONE.- Returns:
- this.
- Since:
- 2.6
-
type
Returns the currentScanOptions.ScanOptionsBuilderconfigured with the giventype.- Parameters:
type- the textual representation ofDataType.fromCode(String). Must not be null.- Returns:
- this.
- Throws:
IllegalArgumentException- if given type is null or unknown.
-
build
Builds a newScanOptionsobjects.- Returns:
- a new
ScanOptionsobjects.
-