@API(value=INTERNAL) public class RecordCursorEndContinuation extends Object implements RecordCursorContinuation
RecordCursor
has returned all of the records that it ever will.
This is the structured continuation equivalent of a null
byte array continuation.Modifier and Type | Field and Description |
---|---|
static RecordCursorContinuation |
END |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnd()
Return whether this continuation is an "end continuation", i.e., represents that the iteration has reached
its end and would not produce more results even if restarted.
|
byte[] |
toBytes()
Serialize this continuation to a byte array.
|
public static final RecordCursorContinuation END
@Nullable public byte[] toBytes()
RecordCursorContinuation
RecordCursorContinuation.isEnd()
returns true
, then toBytes()
must return
null
.toBytes
in interface RecordCursorContinuation
public boolean isEnd()
RecordCursorContinuation
isEnd()
returns true
, then
RecordCursorContinuation.toBytes()
must return null
.isEnd
in interface RecordCursorContinuation