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
    • Method Detail

      • init

        void init​(long index,
                  int degree)
        Initialize this cursor to point to the given index. The correct value for the index is highly implementation specific. The better way to initialize a cursor is through AdjacencyProperties.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 after hasNextLong() returns false.
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • empty

        static PropertyCursor empty()
        Returns a cursor that is always empty.