Package org.neo4j.gds.core.loading
Class ChunkedAdjacencyLists
- java.lang.Object
-
- org.neo4j.gds.core.loading.ChunkedAdjacencyLists
-
public final class ChunkedAdjacencyLists extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ChunkedAdjacencyLists.Consumer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long index, long[] targets, int start, int end, int valuesToAdd)
For memory efficiency, we reuse thevalues
.void
add(long index, long[] targets, long[][] allProperties, int start, int end, int targetsToAdd)
For memory efficiency, we reuse thevalues
.long
capacity()
void
consume(ChunkedAdjacencyLists.Consumer consumer)
boolean
contains(long index)
static org.neo4j.gds.core.utils.mem.MemoryEstimation
memoryEstimation(long avgDegree, long nodeCount, int propertyCount)
static ChunkedAdjacencyLists
of(int numberOfProperties, long initialCapacity)
-
-
-
Method Detail
-
memoryEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation(long avgDegree, long nodeCount, int propertyCount)
-
of
public static ChunkedAdjacencyLists of(int numberOfProperties, long initialCapacity)
-
add
public void add(long index, long[] targets, int start, int end, int valuesToAdd)
For memory efficiency, we reuse thevalues
. They cannot be reused after calling this method.- Parameters:
targets
- values to writestart
- start index in valuesend
- end index in values
-
add
public void add(long index, long[] targets, long[][] allProperties, int start, int end, int targetsToAdd)
For memory efficiency, we reuse thevalues
. They cannot be reused after calling this method.- Parameters:
targets
- values to writeallProperties
- properties to writestart
- start index in values and propertiesend
- end index in values and propertiestargetsToAdd
- the actual number of targets to import from this range
-
capacity
public long capacity()
-
contains
public boolean contains(long index)
-
consume
public void consume(ChunkedAdjacencyLists.Consumer consumer)
-
-