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 newScanOptions
objects.count
(long count) Returns the currentScanOptions.ScanOptionsBuilder
configured with the givencount
.match
(byte[] pattern) Returns the currentScanOptions.ScanOptionsBuilder
configured with the givenpattern
.Returns the currentScanOptions.ScanOptionsBuilder
configured with the givenpattern
.Returns the currentScanOptions.ScanOptionsBuilder
configured with the giventype
.Returns the currentScanOptions.ScanOptionsBuilder
configured with the giventype
.
-
Method Details
-
count
Returns the currentScanOptions.ScanOptionsBuilder
configured with the givencount
.- Parameters:
count
-- Returns:
- this.
-
match
Returns the currentScanOptions.ScanOptionsBuilder
configured with the givenpattern
.- Parameters:
pattern
-- Returns:
- this.
-
match
Returns the currentScanOptions.ScanOptionsBuilder
configured with the givenpattern
.- Parameters:
pattern
-- Returns:
- this.
- Since:
- 2.6
-
type
Returns the currentScanOptions.ScanOptionsBuilder
configured 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.ScanOptionsBuilder
configured 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 newScanOptions
objects.- Returns:
- a new
ScanOptions
objects.
-