Class ScanIteration<T>
java.lang.Object
org.springframework.data.redis.core.ScanIteration<T>
- All Implemented Interfaces:
Iterable<T>
ScanIteration
holds the values contained in Redis Multibulk reply on exectuting SCAN
command.- Since:
- 1.4
- Author:
- Christoph Strobl, Mark Paluch
-
Constructor Summary
ConstructorDescriptionScanIteration
(long cursorId, Collection<T> items) Deprecated.ScanIteration
(Cursor.CursorId cursorId, Collection<T> items) -
Method Summary
Modifier and TypeMethodDescriptionlong
Deprecated.since 3.3.0, usegetId()
instead as the cursorId can exceedLong.MAX_VALUE
.getId()
The cursor id to be used for subsequent requests.getItems()
Get the items returned.iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ScanIteration
Deprecated.- Parameters:
cursorId
-items
-
-
ScanIteration
- Parameters:
cursorId
-items
-- Since:
- 3.3.0
-
-
Method Details
-
getCursorId
Deprecated.since 3.3.0, usegetId()
instead as the cursorId can exceedLong.MAX_VALUE
.The cursor id to be used for subsequent requests.- Returns:
-
getId
The cursor id to be used for subsequent requests.- Returns:
- Since:
- 3.3.0
-
getItems
Get the items returned.- Returns:
-
iterator
-
ScanIteration(CursorId, Collection)
instead ascursorId
can exceedLong.MAX_VALUE
.