Package org.neo4j.graphalgo.api
Interface AdjacencyCursor
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
CompositeAdjacencyCursor
,TransientAdjacencyList.DecompressingCursor
public interface AdjacencyCursor extends java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static long
NOT_FOUND
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
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.
-
-
-
Field Detail
-
NOT_FOUND
static final long NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
size
int size()
Return how many targets can be decoded in total. This is equivalent to the degree.
-
hasNextVLong
boolean hasNextVLong()
Return true iff there is at least one more target to decode.
-
nextVLong
long nextVLong()
Read and decode the next target id. It is undefined behavior if this is called afterhasNextVLong()
returnsfalse
.
-
peekVLong
long peekVLong()
Decode and peek the next target id. Does not progress the internal cursor unlikenextVLong()
.
-
remaining
int remaining()
Return how many targets are still left to be decoded.
-
close
void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-