Class CachedPointer

  • All Implemented Interfaces:
    java.lang.Comparable<Pointer>, Pointer, Range

    public class CachedPointer
    extends java.lang.Object
    implements Pointer
    • Constructor Summary

      Constructors 
      Constructor Description
      CachedPointer​(org.apache.hugegraph.computer.core.io.RandomAccessInput input, long offset, long length)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] bytes()  
      int compareTo​(Pointer other)  
      org.apache.hugegraph.computer.core.io.RandomAccessInput input()  
      long length()  
      long offset()  
      void write​(org.apache.hugegraph.computer.core.io.RandomAccessOutput output)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CachedPointer

        public CachedPointer​(org.apache.hugegraph.computer.core.io.RandomAccessInput input,
                             long offset,
                             long length)
    • Method Detail

      • input

        public org.apache.hugegraph.computer.core.io.RandomAccessInput input()
        Specified by:
        input in interface Pointer
      • offset

        public long offset()
        Specified by:
        offset in interface Range
      • length

        public long length()
        Specified by:
        length in interface Range
      • bytes

        public byte[] bytes()
                     throws java.io.IOException
        Specified by:
        bytes in interface Pointer
        Throws:
        java.io.IOException
      • write

        public void write​(org.apache.hugegraph.computer.core.io.RandomAccessOutput output)
                   throws java.io.IOException
        Specified by:
        write in interface Pointer
        Throws:
        java.io.IOException
      • compareTo

        public int compareTo​(Pointer other)
        Specified by:
        compareTo in interface java.lang.Comparable<Pointer>