Package org.neo4j.gds.api
Interface PropertyCursor
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
PropertyCursor.EmptyPropertyCursor,UncompressedAdjacencyList.Cursor
public interface PropertyCursor extends java.lang.AutoCloseableCursor 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 classPropertyCursor.EmptyPropertyCursor
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()static PropertyCursorempty()Returns a cursor that is always empty.booleanhasNextLong()Return true iff there is at least one more target to decode.voidinit(long index, int degree)Initialize this cursor to point to the givenindex.longnextLong()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:
closein interfacejava.lang.AutoCloseable
-
empty
static PropertyCursor empty()
Returns a cursor that is always empty.
-
-