Class KeyBoundCursor<T>
java.lang.Object
org.springframework.data.redis.core.ScanCursor<T>
org.springframework.data.redis.core.KeyBoundCursor<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<T>
,Cursor<T>
,CloseableIterator<T>
- Since:
- 1.4
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.redis.core.Cursor
Cursor.CursorId
-
Constructor Summary
ConstructorsConstructorDescriptionKeyBoundCursor
(byte[] key, long cursorId, ScanOptions options) Deprecated.KeyBoundCursor
(byte[] key, Cursor.CursorId cursorId, ScanOptions options) Crates newScanCursor
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ScanIteration<T>
doScan
(byte[] key, Cursor.CursorId cursorId, ScanOptions options) protected ScanIteration<T>
doScan
(long cursorId, ScanOptions options) Performs the actual scan command using the native client implementation.protected ScanIteration<T>
doScan
(Cursor.CursorId cursorId, ScanOptions options) Performs the actual scan command using the native client implementation.byte[]
getKey()
Methods inherited from class org.springframework.data.redis.core.ScanCursor
close, doClose, doOpen, doOpen, getCursorId, getId, getPosition, hasNext, isClosed, isFinished, isFinished, isOpen, isReady, moveNext, next, open, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.util.CloseableIterator
spliterator, stream
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
KeyBoundCursor
@Deprecated(since="3.3.0") public KeyBoundCursor(byte[] key, long cursorId, @Nullable ScanOptions options) Deprecated.since 3.3.0 - UseKeyBoundCursor(byte[], CursorId, ScanOptions)
instead.Crates newScanCursor
- Parameters:
cursorId
-options
- Defaulted toScanOptions.NONE
if nulled.
-
KeyBoundCursor
Crates newScanCursor
- Parameters:
cursorId
-options
- Defaulted toScanOptions.NONE
if nulled.- Since:
- 3.3.0
-
-
Method Details
-
doScan
Description copied from class:ScanCursor
Performs the actual scan command using the native client implementation. The given options are never null.- Overrides:
doScan
in classScanCursor<T>
- Returns:
-
doScan
Description copied from class:ScanCursor
Performs the actual scan command using the native client implementation. The given options are never null.- Overrides:
doScan
in classScanCursor<T>
- Returns:
-
doScan
protected abstract ScanIteration<T> doScan(byte[] key, Cursor.CursorId cursorId, ScanOptions options) -
getKey
public byte[] getKey()
-
KeyBoundCursor(byte[], CursorId, ScanOptions)
instead.