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
-
Constructor Summary
ConstructorDescriptionKeyBoundCursor
(byte[] key, long cursorId, ScanOptions options) Crates newScanCursor
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ScanIteration<T>
doScan
(byte[] key, long cursorId, ScanOptions options) protected ScanIteration<T>
doScan
(long 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, getCursorId, getPosition, hasNext, isClosed, 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
Crates newScanCursor
- Parameters:
cursorId
-options
- Defaulted toScanOptions.NONE
if nulled.
-
-
Method Details
-
doScan
Description copied from class:ScanCursor
Performs the actual scan command using the native client implementation. The given options are never null.- Specified by:
doScan
in classScanCursor<T>
- Returns:
-
doScan
-
getKey
public byte[] getKey()
-