Interface AdjacencyCursor

    • 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.
    • 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 after hasNextVLong() returns false.
      • peekVLong

        long peekVLong()
        Decode and peek the next target id. Does not progress the internal cursor unlike nextVLong().
      • remaining

        int remaining()
        Return how many targets are still left to be decoded.
      • close

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