java.lang.Object
io.lettuce.core.ScanCursor
- Direct Known Subclasses:
KeyScanCursor,MapScanCursor,ScoredValueScanCursor,StreamScanCursor,ValueScanCursor
public class ScanCursor extends Object
Generic Cursor data structure.
- Since:
- 3.0
- Author:
- Mark Paluch
-
Field Summary
Fields Modifier and Type Field Description static ScanCursorFINISHEDFinished cursor.static ScanCursorINITIALInitial cursor. -
Constructor Summary
Constructors Constructor Description ScanCursor()Creates a newScanCursor.ScanCursor(String cursor, boolean finished)Creates a newScanCursor. -
Method Summary
Modifier and Type Method Description StringgetCursor()booleanisFinished()static ScanCursorof(String cursor)Creates a Scan-Cursor reference.voidsetCursor(String cursor)Set the cursorvoidsetFinished(boolean finished)
-
Field Details
-
FINISHED
Finished cursor. -
INITIAL
Initial cursor.
-
-
Constructor Details
-
ScanCursor
public ScanCursor()Creates a newScanCursor. -
ScanCursor
Creates a newScanCursor.- Parameters:
cursor-finished-
-
-
Method Details
-
getCursor
- Returns:
- cursor id
-
setCursor
Set the cursor- Parameters:
cursor- the cursor id
-
isFinished
public boolean isFinished()- Returns:
- true if the scan operation of this cursor is finished.
-
setFinished
public void setFinished(boolean finished) -
of
Creates a Scan-Cursor reference.- Parameters:
cursor- the cursor id- Returns:
- ScanCursor
-