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 interfaceChunkedAdjacencyLists.Consumer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long index, long[] values, int start, int end, int valuesToAdd)For memory efficiency, we reuse thevalues.voidadd(long index, long[] values, long[][] allProperties, int start, int end, int valuesToAdd)For memory efficiency, we reuse thevalues.longcapacity()voidconsume(ChunkedAdjacencyLists.Consumer consumer)booleancontains(long index)static org.neo4j.gds.core.utils.mem.MemoryEstimationmemoryEstimation(long avgDegree, long nodeCount, int propertyCount)static ChunkedAdjacencyListsof(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[] values, int start, int end, int valuesToAdd)For memory efficiency, we reuse thevalues. They cannot be reused after calling this method.- Parameters:
values- values to writestart- start index in valuesend- end index in values
-
add
public void add(long index, long[] values, long[][] allProperties, int start, int end, int valuesToAdd)For memory efficiency, we reuse thevalues. They cannot be reused after calling this method.- Parameters:
values- values to writeallProperties- properties to writestart- start index in values and propertiesend- end index in values and propertiesvaluesToAdd- 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)
-
-