Package org.neo4j.gds.core.huge
Class CompositeAdjacencyList
- java.lang.Object
-
- org.neo4j.gds.core.huge.CompositeAdjacencyList
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,AdjacencyList
public class CompositeAdjacencyList extends java.lang.Object implements AdjacencyList
-
-
Field Summary
-
Fields inherited from interface org.neo4j.gds.api.AdjacencyList
EMPTY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeAdjacencyCursor
adjacencyCursor(long node)
Create a new cursor for the target ids of the givennode
.CompositeAdjacencyCursor
adjacencyCursor(long node, double fallbackValue)
Create a new cursor for the target ids of the givennode
.CompositeAdjacencyCursor
adjacencyCursor(@Nullable AdjacencyCursor reuse, long node)
Create a new cursor for the target ids of the givennode
.CompositeAdjacencyCursor
adjacencyCursor(@Nullable AdjacencyCursor reuse, long node, double fallbackValue)
Create a new cursor for the target ids of the givennode
.void
close()
int
degree(long node)
Returns the degree of a node.AdjacencyCursor
rawAdjacencyCursor()
Create a new uninitialized cursor.int
size()
-
-
-
Method Detail
-
size
public int size()
-
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 CompositeAdjacencyCursor adjacencyCursor(long node)
Description copied from interface:AdjacencyList
Create a new cursor for the target ids of the givennode
. The cursor is not expected to return correct property values. 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 CompositeAdjacencyCursor 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 CompositeAdjacencyCursor adjacencyCursor(@Nullable @Nullable AdjacencyCursor reuse, long node)
Description copied from interface:AdjacencyList
Create a new cursor for the target ids of the givennode
. The cursor is not expected to return correct property values. 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
-
adjacencyCursor
public CompositeAdjacencyCursor 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
-
close
public void close()
- Specified by:
close
in interfaceAdjacencyList
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-