Class AbstractHgkvFile

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, HgkvFile
    Direct Known Subclasses:
    HgkvDirImpl, HgkvFileImpl

    public abstract class AbstractHgkvFile
    extends java.lang.Object
    implements HgkvFile
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractHgkvFile​(java.lang.String path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String magic()
      File verification string.
      byte[] max()
      Max key in file.
      byte[] min()
      Min key in file.
      long numEntries()
      Number of entries in file.
      long numSubEntries()
      Number of sub entries in file.
      java.lang.String path()
      The absolute path includes file name.
      java.lang.String version()
      File version.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
      • Methods inherited from interface org.apache.hugegraph.computer.core.store.file.hgkvfile.HgkvFile

        output
    • Field Detail

      • MAJOR_VERSION

        public static final byte MAJOR_VERSION
      • MINOR_VERSION

        public static final byte MINOR_VERSION
      • MAGIC

        public static final java.lang.String MAGIC
      • path

        protected final java.lang.String path
      • magic

        protected java.lang.String magic
      • numEntries

        protected long numEntries
      • numSubEntries

        protected long numSubEntries
      • dataBlockSize

        protected long dataBlockSize
      • indexBlockSize

        protected long indexBlockSize
      • max

        protected byte[] max
      • min

        protected byte[] min
      • version

        protected java.lang.String version
    • Constructor Detail

      • AbstractHgkvFile

        public AbstractHgkvFile​(java.lang.String path)
    • Method Detail

      • path

        public java.lang.String path()
        Description copied from interface: HgkvFile
        The absolute path includes file name.
        Specified by:
        path in interface HgkvFile
      • numEntries

        public long numEntries()
        Description copied from interface: HgkvFile
        Number of entries in file.
        Specified by:
        numEntries in interface HgkvFile
      • numSubEntries

        public long numSubEntries()
        Description copied from interface: HgkvFile
        Number of sub entries in file.
        Specified by:
        numSubEntries in interface HgkvFile
      • version

        public java.lang.String version()
        Description copied from interface: HgkvFile
        File version.
        Specified by:
        version in interface HgkvFile
      • max

        public byte[] max()
        Description copied from interface: HgkvFile
        Max key in file.
        Specified by:
        max in interface HgkvFile
      • min

        public byte[] min()
        Description copied from interface: HgkvFile
        Min key in file.
        Specified by:
        min in interface HgkvFile
      • magic

        public java.lang.String magic()
        Description copied from interface: HgkvFile
        File verification string.
        Specified by:
        magic in interface HgkvFile