Package org.neo4j.gds.core.loading
Class AdjacencyBuffer
- java.lang.Object
-
- org.neo4j.gds.core.loading.AdjacencyBuffer
-
public final class AdjacencyBuffer extends java.lang.Object
Wraps a paged representation ofChunkedAdjacencyLists
s which store the target ids for each node during import. An instance of this class exists exactly once per relationship type and has the following responsibilities:- Receives raw relationship records from relationship batch buffers via
SingleTypeRelationshipImporter
- Compresses raw records into compressed long arrays
- Creates tasks that write compressed long arrays into the final adjacency list using a specific compressor
- Receives raw relationship records from relationship batch buffers via
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdjacencyBuffer.AdjacencyListBuilderTask
Responsible for writing a page of ChunkedAdjacencyLists into the adjacency list.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.neo4j.gds.core.utils.mem.MemoryEstimation
memoryEstimation(long avgDegree, long nodeCount, int propertyCount, int concurrency)
static org.neo4j.gds.core.utils.mem.MemoryEstimation
memoryEstimation(org.neo4j.gds.RelationshipType relationshipType, int propertyCount, boolean undirected)
static AdjacencyBuffer
of(SingleTypeRelationshipImporter.ImportMetaData importMetaData, AdjacencyCompressorFactory adjacencyCompressorFactory, ImportSizing importSizing)
-
-
-
Method Detail
-
memoryEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation(org.neo4j.gds.RelationshipType relationshipType, int propertyCount, boolean undirected)
-
memoryEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation(long avgDegree, long nodeCount, int propertyCount, int concurrency)
-
of
@Factory public static AdjacencyBuffer of(SingleTypeRelationshipImporter.ImportMetaData importMetaData, AdjacencyCompressorFactory adjacencyCompressorFactory, ImportSizing importSizing)
-
-