Package org.neo4j.gds.api
Interface PropertyCursor
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
PropertyCursor.EmptyPropertyCursor
,TransientUncompressedList.Cursor
public interface PropertyCursor extends java.lang.AutoCloseable
Cursor iterating over the values of relationship properties. A lot of the methods here are very low-level and break when looked at slightly askew. Better iteration methods and defined access patterns will be added under the continuation of Adjacency Compression III – Return of the Iterator
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PropertyCursor.EmptyPropertyCursor
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
static PropertyCursor
empty()
Returns a cursor that is always empty.boolean
hasNextLong()
Return true iff there is at least one more target to decode.void
init(long index, int degree)
Initialize this cursor to point to the givenindex
.long
nextLong()
Read the next target id.
-
-
-
Method Detail
-
init
void init(long index, int degree)
Initialize this cursor to point to the givenindex
. The correct value for the index is highly implementation specific. The better way to initialize a cursor is throughAdjacencyProperties.propertyCursor(long)
or related.
-
hasNextLong
boolean hasNextLong()
Return true iff there is at least one more target to decode.
-
nextLong
long nextLong()
Read the next target id. It is undefined behavior if this is called afterhasNextLong()
returnsfalse
.
-
close
void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
empty
static PropertyCursor empty()
Returns a cursor that is always empty.
-
-