Class ValueFileInput

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataInput, java.lang.AutoCloseable, org.apache.hugegraph.computer.core.io.BytesInput, org.apache.hugegraph.computer.core.io.RandomAccessInput

    public class ValueFileInput
    extends AbstractBufferedFileInput
    • Constructor Detail

      • ValueFileInput

        public ValueFileInput​(org.apache.hugegraph.computer.core.config.Config config,
                              java.io.File dir)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • ValueFileInput

        public ValueFileInput​(org.apache.hugegraph.computer.core.config.Config config,
                              java.io.File dir,
                              int bufferCapacity)
                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • readFully

        public void readFully​(byte[] b,
                              int off,
                              int len)
                       throws java.io.IOException
        Specified by:
        readFully in interface java.io.DataInput
        Overrides:
        readFully in class UnsafeBytesInput
        Throws:
        java.io.IOException
      • seek

        public void seek​(long position)
                  throws java.io.IOException
        Specified by:
        seek in interface org.apache.hugegraph.computer.core.io.RandomAccessInput
        Overrides:
        seek in class UnsafeBytesInput
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class UnsafeBytesInput
        Throws:
        java.io.IOException
      • duplicate

        public UnsafeBytesInput duplicate()
                                   throws java.io.IOException
        Specified by:
        duplicate in interface org.apache.hugegraph.computer.core.io.RandomAccessInput
        Overrides:
        duplicate in class UnsafeBytesInput
        Throws:
        java.io.IOException