Class RspRangeBatchIterator
java.lang.Object
io.deephaven.engine.rowset.impl.rsp.RspRangeBatchIterator
- All Implemented Interfaces:
SafeCloseable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionRspRangeBatchIterator
(RspArray.SpanCursorForward p, long startOffset, long maxCount) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
fillRangeChunk
(WritableLongChunk<OrderedRowKeyRanges> chunk, int chunkOffset) Fill a writable long chunk with pairs of range boundaries (start, endInclusive) starting from the next iterator position forward.boolean
hasNext()
void
release()
-
Constructor Details
-
RspRangeBatchIterator
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSafeCloseable
-
hasNext
public boolean hasNext() -
fillRangeChunk
Fill a writable long chunk with pairs of range boundaries (start, endInclusive) starting from the next iterator position forward.- Parameters:
chunk
- A writable chunk to fillchunkOffset
- An offset inside the chunk to the position to start writing- Returns:
- The count of ranges written (which matches 2 times the number of elements written).
-
release
public void release()
-