Interface RelationDataSource


public interface RelationDataSource
Data source providing an edge stream for a relation matrix.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Total exact number of directed edges in this relation.
    Primary edge stream, strictly sorted by Source ID (mandatory for building the CSR topology).
    Optional secondary edge stream, strictly sorted by Target ID (for building the CSC topology).
  • Method Details

    • getEdgeCount

      long getEdgeCount()
      Total exact number of directed edges in this relation.
    • getEdges

      EdgeChunkIterator getEdges()
      Primary edge stream, strictly sorted by Source ID (mandatory for building the CSR topology).
    • getTargetSortedEdges

      default Optional<EdgeChunkIterator> getTargetSortedEdges()
      Optional secondary edge stream, strictly sorted by Target ID (for building the CSC topology). If empty and CSC is requested, the builder will use the staging directory to external-sort the primary stream.