Class ValueFileOutput

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.lang.AutoCloseable, org.apache.hugegraph.computer.core.io.BytesOutput, org.apache.hugegraph.computer.core.io.RandomAccessOutput

    public class ValueFileOutput
    extends AbstractBufferedFileOutput
    • Constructor Detail

      • ValueFileOutput

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

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

      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Overrides:
        write in class UnsafeBytesOutput
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Overrides:
        write in class UnsafeBytesOutput
        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.RandomAccessOutput
        Overrides:
        seek in class UnsafeBytesOutput
        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 UnsafeBytesOutput
        Throws:
        java.io.IOException