Package org.neo4j.gds.core.huge
Class UncompressedAdjacencyList
- java.lang.Object
-
- org.neo4j.gds.core.huge.UncompressedAdjacencyList
-
- All Implemented Interfaces:
java.lang.AutoCloseable,AdjacencyList,AdjacencyProperties
public final class UncompressedAdjacencyList extends java.lang.Object implements AdjacencyList, AdjacencyProperties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUncompressedAdjacencyList.Cursor
-
Field Summary
-
Fields inherited from interface org.neo4j.gds.api.AdjacencyList
EMPTY
-
-
Constructor Summary
Constructors Constructor Description UncompressedAdjacencyList(long[][] pages, HugeIntArray degrees, HugeLongArray offsets)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdjacencyCursoradjacencyCursor(long node, double fallbackValue)Create a new cursor for the target ids of the givennode.AdjacencyCursoradjacencyCursor(@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.MemoryEstimationadjacencyListEstimation(boolean undirected)static org.neo4j.gds.core.utils.mem.MemoryEstimationadjacencyListEstimation(long avgDegree, long nodeCount)static org.neo4j.gds.core.utils.mem.MemoryEstimationadjacencyListEstimation(org.neo4j.gds.RelationshipType relationshipType, boolean undirected)static org.neo4j.gds.core.utils.mem.MemoryEstimationadjacencyPropertiesEstimation(org.neo4j.gds.RelationshipType relationshipType, boolean undirected)voidclose()intdegree(long node)Returns the degree of a node.PropertyCursorpropertyCursor(long node, double fallbackValue)Create a new cursor for the properties of the relationships of a givennode.PropertyCursorpropertyCursor(PropertyCursor reuse, long node, double fallbackValue)Create a new cursor for the properties of the relationships of a givennode.AdjacencyCursorrawAdjacencyCursor()Create a new uninitialized cursor.PropertyCursorrawPropertyCursor()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
-
Methods inherited from interface org.neo4j.gds.api.AdjacencyProperties
propertyCursor, propertyCursor
-
-
-
-
Constructor Detail
-
UncompressedAdjacencyList
public UncompressedAdjacencyList(long[][] pages, HugeIntArray degrees, HugeLongArray offsets)
-
-
Method Detail
-
adjacencyListEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyListEstimation(org.neo4j.gds.RelationshipType relationshipType, boolean undirected)
-
adjacencyListEstimation
@TestOnly public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyListEstimation(boolean undirected)
-
adjacencyListEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyListEstimation(long avgDegree, long nodeCount)
-
adjacencyPropertiesEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyPropertiesEstimation(org.neo4j.gds.RelationshipType relationshipType, boolean undirected)
-
degree
public int degree(long node)
Description copied from interface:AdjacencyListReturns the degree of a node. Undefined behavior if the node does not exist.- Specified by:
degreein interfaceAdjacencyList
-
adjacencyCursor
public AdjacencyCursor adjacencyCursor(long node, double fallbackValue)
Description copied from interface:AdjacencyListCreate 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 howAdjacencyCursors will return properties is unclear. Undefined behavior if the node does not exist.- Specified by:
adjacencyCursorin interfaceAdjacencyList
-
adjacencyCursor
public AdjacencyCursor adjacencyCursor(@Nullable @Nullable AdjacencyCursor reuse, long node, double fallbackValue)
Description copied from interface:AdjacencyListCreate 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 howAdjacencyCursors will return properties is unclear. The implementation might try to reuse the providedreusecursor, 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:
adjacencyCursorin interfaceAdjacencyList
-
rawAdjacencyCursor
public AdjacencyCursor rawAdjacencyCursor()
Description copied from interface:AdjacencyListCreate a new uninitialized cursor. NOTE: In order to use the returned cursorAdjacencyCursor.init(long, int)must be called.- Specified by:
rawAdjacencyCursorin interfaceAdjacencyList
-
close
public void close()
- Specified by:
closein interfaceAdjacencyList- Specified by:
closein interfaceAdjacencyProperties- Specified by:
closein interfacejava.lang.AutoCloseable
-
propertyCursor
public PropertyCursor propertyCursor(long node, double fallbackValue)
Description copied from interface:AdjacencyPropertiesCreate a new cursor for the properties of the relationships of a givennode. If the cursor cannot produce property values, it will yield the providedfallbackValue. NOTE: Fallback behavior is not widely available and will be part of the next episode. Undefined behavior if the node does not exist.- Specified by:
propertyCursorin interfaceAdjacencyProperties
-
propertyCursor
public PropertyCursor propertyCursor(PropertyCursor reuse, long node, double fallbackValue)
Description copied from interface:AdjacencyPropertiesCreate a new cursor for the properties of the relationships of a givennode. If the cursor cannot produce property values, it will yield the providedfallbackValue. NOTE: Fallback behavior is not widely available and will be part of the next episode. The Implementation might try to reuse the providedreusecursor, 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:
propertyCursorin interfaceAdjacencyProperties
-
rawPropertyCursor
public PropertyCursor rawPropertyCursor()
Description copied from interface:AdjacencyPropertiesCreate a new uninitialized cursor. NOTE: In order to use the returned cursorPropertyCursor.init(long, int)must be called.- Specified by:
rawPropertyCursorin interfaceAdjacencyProperties
-
-