Package org.neo4j.graphalgo.core.huge
Class CompositeAdjacencyCursor
- java.lang.Object
-
- org.neo4j.graphalgo.core.huge.CompositeAdjacencyCursor
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,AdjacencyCursor
public class CompositeAdjacencyCursor extends java.lang.Object implements AdjacencyCursor
-
-
Field Summary
-
Fields inherited from interface org.neo4j.graphalgo.api.AdjacencyCursor
NOT_FOUND
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.util.List<AdjacencyCursor>
cursors()
boolean
hasNextVLong()
Return true iff there is at least one more target to decode.long
nextVLong()
Read and decode the next target id.long
peekVLong()
Decode and peek the next target id.int
remaining()
Return how many targets are still left to be decoded.int
size()
Return how many targets can be decoded in total.
-
-
-
Method Detail
-
cursors
public java.util.List<AdjacencyCursor> cursors()
-
size
public int size()
Description copied from interface:AdjacencyCursor
Return how many targets can be decoded in total. This is equivalent to the degree.- Specified by:
size
in interfaceAdjacencyCursor
-
hasNextVLong
public boolean hasNextVLong()
Description copied from interface:AdjacencyCursor
Return true iff there is at least one more target to decode.- Specified by:
hasNextVLong
in interfaceAdjacencyCursor
-
nextVLong
public long nextVLong()
Description copied from interface:AdjacencyCursor
Read and decode the next target id. It is undefined behavior if this is called afterAdjacencyCursor.hasNextVLong()
returnsfalse
.- Specified by:
nextVLong
in interfaceAdjacencyCursor
-
peekVLong
public long peekVLong()
Description copied from interface:AdjacencyCursor
Decode and peek the next target id. Does not progress the internal cursor unlikeAdjacencyCursor.nextVLong()
.- Specified by:
peekVLong
in interfaceAdjacencyCursor
-
remaining
public int remaining()
Description copied from interface:AdjacencyCursor
Return how many targets are still left to be decoded.- Specified by:
remaining
in interfaceAdjacencyCursor
-
close
public void close()
- Specified by:
close
in interfaceAdjacencyCursor
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-