Interface EdgeChunkIterator
- All Superinterfaces:
AutoCloseable
Zero-allocation chunk iterator for streaming graph edges.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()booleanhasNext()Returns true if more edges remain in this stream.intnextChunk(MemorySegment srcIds, MemorySegment tgtIds, int limit) Populates the provided parallel off-heap memory segments with edge pairs.
-
Method Details
-
hasNext
boolean hasNext()Returns true if more edges remain in this stream. -
nextChunk
Populates the provided parallel off-heap memory segments with edge pairs.- Parameters:
srcIds- segment receiving source node IDs formatted to the source domain's primitive widthtgtIds- segment receiving target node IDs formatted to the target domain's primitive widthlimit- maximum number of edges to populate- Returns:
- count of edges actually populated
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-