Class HgkvDirImpl
- java.lang.Object
-
- org.apache.hugegraph.computer.core.store.file.hgkvfile.AbstractHgkvFile
-
- org.apache.hugegraph.computer.core.store.file.hgkvfile.HgkvDirImpl
-
public class HgkvDirImpl extends AbstractHgkvFile implements HgkvDir
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFILE_EXTEND_NAMEstatic java.lang.StringFILE_NAME_PREFIX-
Fields inherited from class org.apache.hugegraph.computer.core.store.file.hgkvfile.AbstractHgkvFile
dataBlockSize, indexBlockSize, magic, MAGIC, MAJOR_VERSION, max, min, MINOR_VERSION, numEntries, numSubEntries, path, version
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static HgkvDircreate(java.lang.String path)byte[]max()Max key in file.byte[]min()Min key in file.static HgkvDiropen(java.lang.String path)BufferedFileOutputoutput()Output of hgkv file.java.util.List<HgkvFile>segments()Return the segments in HgkvDir.-
Methods inherited from class org.apache.hugegraph.computer.core.store.file.hgkvfile.AbstractHgkvFile
magic, numEntries, numSubEntries, path, version
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hugegraph.computer.core.store.file.hgkvfile.HgkvFile
magic, numEntries, numSubEntries, path, version
-
-
-
-
Field Detail
-
FILE_NAME_PREFIX
public static final java.lang.String FILE_NAME_PREFIX
- See Also:
- Constant Field Values
-
FILE_EXTEND_NAME
public static final java.lang.String FILE_EXTEND_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static HgkvDir create(java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
open
public static HgkvDir open(java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
max
public byte[] max()
Description copied from interface:HgkvFileMax key in file.- Specified by:
maxin interfaceHgkvFile- Overrides:
maxin classAbstractHgkvFile
-
min
public byte[] min()
Description copied from interface:HgkvFileMin key in file.- Specified by:
minin interfaceHgkvFile- Overrides:
minin classAbstractHgkvFile
-
segments
public java.util.List<HgkvFile> segments()
Description copied from interface:HgkvDirReturn the segments in HgkvDir. A HgkvDir is a complete file, HgkvDir consists of multiple HgkvFile.
-
output
public BufferedFileOutput output() throws java.io.FileNotFoundException
Description copied from interface:HgkvFileOutput of hgkv file.
-
-