Class HgkvDirBuilderImpl

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, KvEntryFileWriter

    public class HgkvDirBuilderImpl
    extends java.lang.Object
    implements KvEntryFileWriter
    • Constructor Summary

      Constructors 
      Constructor Description
      HgkvDirBuilderImpl​(org.apache.hugegraph.computer.core.config.Config config, java.lang.String path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void finish()
      Finish build file.
      void write​(KvEntry entry)
      Write kvEntry to file.
      • Methods inherited from class java.lang.Object

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

      • HgkvDirBuilderImpl

        public HgkvDirBuilderImpl​(org.apache.hugegraph.computer.core.config.Config config,
                                  java.lang.String path)
    • Method Detail

      • write

        public void write​(KvEntry entry)
                   throws java.io.IOException
        Description copied from interface: KvEntryFileWriter
        Write kvEntry to file.
        Specified by:
        write in interface KvEntryFileWriter
        Throws:
        java.io.IOException
      • finish

        public void finish()
                    throws java.io.IOException
        Description copied from interface: KvEntryFileWriter
        Finish build file. You can release resources or do some aftercare in this method.
        Specified by:
        finish in interface KvEntryFileWriter
        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
        Throws:
        java.io.IOException