Class HgkvFileImpl
- java.lang.Object
-
- org.apache.hugegraph.computer.core.store.file.hgkvfile.AbstractHgkvFile
-
- org.apache.hugegraph.computer.core.store.file.hgkvfile.HgkvFileImpl
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,HgkvFile
public class HgkvFileImpl extends AbstractHgkvFile
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description HgkvFileImpl(java.lang.String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static HgkvFilecreate(java.lang.String path)static HgkvFileopen(java.io.File file)static HgkvFileopen(java.lang.String path)org.apache.hugegraph.computer.core.io.RandomAccessOutputoutput()Output of hgkv file.-
Methods inherited from class org.apache.hugegraph.computer.core.store.file.hgkvfile.AbstractHgkvFile
magic, max, min, numEntries, numSubEntries, path, version
-
-
-
-
Method Detail
-
create
public static HgkvFile create(java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
open
public static HgkvFile open(java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
open
public static HgkvFile open(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
output
public org.apache.hugegraph.computer.core.io.RandomAccessOutput output() throws java.io.IOExceptionDescription copied from interface:HgkvFileOutput of hgkv file.- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
-