Class RedisCursor
java.lang.Object
com.blackrook.redis.data.RedisCursor
A cursor encapsulation for the result of a SCAN call.
- Author:
- Matthew Tropiano
-
Method Summary
-
Method Details
-
create
Creates a new scan cursor with a set of keys.- Parameters:
cursor- the cursor value to use for the next call.keys- the keys to use for this cursor.- Returns:
- a new cursor.
-
getCursor
public long getCursor()- Returns:
- the value of the next cursor handle to use for retrieving later keys in the iteration.
-
getKeys
- Returns:
- the keys to iterate through in this cursor iteration. May be empty.
-
hasNext
public boolean hasNext()Checks if there are more keys to iterate through. If true, this cursor should be used again in order to complete a full iteration. Equivalent togetCursor()!= 0.- Returns:
- true if more keys exist, false if not.
-