Interface EdgeChunkIterator

All Superinterfaces:
AutoCloseable

public interface EdgeChunkIterator extends AutoCloseable
Zero-allocation chunk iterator for streaming graph edges.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    boolean
    Returns true if more edges remain in this stream.
    int
    nextChunk(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

      int nextChunk(MemorySegment srcIds, MemorySegment tgtIds, int limit)
      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 width
      tgtIds - segment receiving target node IDs formatted to the target domain's primitive width
      limit - maximum number of edges to populate
      Returns:
      count of edges actually populated
    • close

      default void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception