Interface HgkvFileBuilder

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    HgkvFileBuilderImpl

    public interface HgkvFileBuilder
    extends java.io.Closeable
    • Method Detail

      • add

        void add​(KvEntry entry)
          throws java.io.IOException
        Add kv entry to file.
        Throws:
        java.io.IOException
      • sizeOfEntry

        long sizeOfEntry​(KvEntry entry)
        Return size of new entry.
      • finish

        void finish()
             throws java.io.IOException
        Finish build file.
        Throws:
        java.io.IOException
      • dataLength

        long dataLength()
        Return the size of entry in bytes that has been written.
      • indexLength

        long indexLength()
        Return the size of index block length.
      • headerLength

        int headerLength()
        Return the size of header.