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>,org.springframework.data.util.CloseableIterator<T>
- Since:
- 1.4
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionKeyBoundCursor(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, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.util.CloseableIterator
spliterator, streamMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
KeyBoundCursor
Crates newScanCursor- Parameters:
cursorId-options- Defaulted toScanOptions.NONEif nulled.
-
-
Method Details
-
doScan
Description copied from class:ScanCursorPerforms the actual scan command using the native client implementation. The given options are nevernull.- Specified by:
doScanin classScanCursor<T>- Returns:
-
doScan
-
getKey
public byte[] getKey()
-