Class AbstractHgkvFile
- java.lang.Object
-
- org.apache.hugegraph.computer.core.store.file.hgkvfile.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
-
-
Field Summary
Fields Modifier and Type Field Description protected longdataBlockSizeprotected longindexBlockSizeprotected java.lang.Stringmagicstatic java.lang.StringMAGICstatic byteMAJOR_VERSIONprotected byte[]maxprotected byte[]minstatic byteMINOR_VERSIONprotected longnumEntriesprotected longnumSubEntriesprotected java.lang.Stringpathprotected java.lang.Stringversion
-
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.Stringmagic()File verification string.byte[]max()Max key in file.byte[]min()Min key in file.longnumEntries()Number of entries in file.longnumSubEntries()Number of sub entries in file.java.lang.Stringpath()The absolute path includes file name.java.lang.Stringversion()File version.
-
-
-
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
-
-
Method Detail
-
path
public java.lang.String path()
Description copied from interface:HgkvFileThe absolute path includes file name.
-
numEntries
public long numEntries()
Description copied from interface:HgkvFileNumber of entries in file.- Specified by:
numEntriesin interfaceHgkvFile
-
numSubEntries
public long numSubEntries()
Description copied from interface:HgkvFileNumber of sub entries in file.- Specified by:
numSubEntriesin interfaceHgkvFile
-
version
public java.lang.String version()
Description copied from interface:HgkvFileFile version.
-
max
public byte[] max()
Description copied from interface:HgkvFileMax key in file.
-
min
public byte[] min()
Description copied from interface:HgkvFileMin key in file.
-
-