Interface HgkvFileBuilder
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
HgkvFileBuilderImpl
public interface HgkvFileBuilder extends java.io.Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(KvEntry entry)Add kv entry to file.longdataLength()Return the size of entry in bytes that has been written.voidfinish()Finish build file.intheaderLength()Return the size of header.longindexLength()Return the size of index block length.longsizeOfEntry(KvEntry entry)Return size of new entry.
-
-
-
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.IOExceptionFinish 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.
-
-