Class CompressedAdjacencyList
- java.lang.Object
-
- org.neo4j.gds.core.compression.varlong.CompressedAdjacencyList
-
- All Implemented Interfaces:
AdjacencyList
public final class CompressedAdjacencyList extends java.lang.Object implements AdjacencyList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompressedAdjacencyList.DecompressingCursor
-
Field Summary
-
Fields inherited from interface org.neo4j.gds.api.AdjacencyList
EMPTY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdjacencyCursor
adjacencyCursor(long node, double fallbackValue)
Create a new cursor for the target ids of the givennode
.AdjacencyCursor
adjacencyCursor(@Nullable AdjacencyCursor reuse, long node, double fallbackValue)
Create a new cursor for the target ids of the givennode
.static org.neo4j.gds.core.utils.mem.MemoryEstimation
adjacencyListEstimation(boolean undirected)
static org.neo4j.gds.core.utils.mem.MemoryEstimation
adjacencyListEstimation(long avgDegree, long nodeCount)
static org.neo4j.gds.core.utils.mem.MemoryEstimation
adjacencyListEstimation(org.neo4j.gds.RelationshipType relationshipType, boolean undirected)
static long
computeAdjacencyByteSize(long avgDegree, long nodeCount, long delta)
int
degree(long node)
Returns the degree of a node.MemoryInfo
memoryInfo()
Returns information about on heap and off heap memory usage of this adjacency list.AdjacencyCursor
rawAdjacencyCursor()
Create a new uninitialized cursor.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.gds.api.AdjacencyList
adjacencyCursor, adjacencyCursor
-
-
-
-
Method Detail
-
adjacencyListEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyListEstimation(org.neo4j.gds.RelationshipType relationshipType, boolean undirected)
-
adjacencyListEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyListEstimation(long avgDegree, long nodeCount)
-
adjacencyListEstimation
@TestOnly public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyListEstimation(boolean undirected)
-
computeAdjacencyByteSize
public static long computeAdjacencyByteSize(long avgDegree, long nodeCount, long delta)
-
degree
public int degree(long node)
Description copied from interface:AdjacencyList
Returns the degree of a node. Undefined behavior if the node does not exist.- Specified by:
degree
in interfaceAdjacencyList
-
adjacencyCursor
public AdjacencyCursor adjacencyCursor(long node, double fallbackValue)
Description copied from interface:AdjacencyList
Create a new cursor for the target ids of the givennode
. If the cursor cannot produce property values, it will yield the providedfallbackValue
. NOTE: Whether and howAdjacencyCursor
s will return properties is unclear. Undefined behavior if the node does not exist.- Specified by:
adjacencyCursor
in interfaceAdjacencyList
-
adjacencyCursor
public AdjacencyCursor adjacencyCursor(@Nullable @Nullable AdjacencyCursor reuse, long node, double fallbackValue)
Description copied from interface:AdjacencyList
Create a new cursor for the target ids of the givennode
. If the cursor cannot produce property values, it will yield the providedfallbackValue
. NOTE: Whether and howAdjacencyCursor
s will return properties is unclear. The implementation might try to reuse the providedreuse
cursor, if possible. That is not guaranteed, however, implementation may choose to ignore the reuse cursor for any reason. Undefined behavior if the node does not exist.- Specified by:
adjacencyCursor
in interfaceAdjacencyList
-
rawAdjacencyCursor
public AdjacencyCursor rawAdjacencyCursor()
Description copied from interface:AdjacencyList
Create a new uninitialized cursor. NOTE: In order to use the returned cursorAdjacencyCursor.init(long, int)
must be called.- Specified by:
rawAdjacencyCursor
in interfaceAdjacencyList
-
memoryInfo
public MemoryInfo memoryInfo()
Description copied from interface:AdjacencyList
Returns information about on heap and off heap memory usage of this adjacency list.- Specified by:
memoryInfo
in interfaceAdjacencyList
-
-