Class DataBlockBuilderImpl
- java.lang.Object
-
- org.apache.hugegraph.computer.core.store.file.hgkvfile.builder.DataBlockBuilderImpl
-
- All Implemented Interfaces:
BlockBuilder
public class DataBlockBuilderImpl extends java.lang.Object implements BlockBuilder
-
-
Constructor Summary
Constructors Constructor Description DataBlockBuilderImpl(org.apache.hugegraph.computer.core.io.RandomAccessOutput output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(KvEntry entry)voidfinish()voidreset()longsize()longsizeOfEntry(KvEntry entry)
-
-
-
Method Detail
-
add
public void add(KvEntry entry) throws java.io.IOException
- Specified by:
addin interfaceBlockBuilder- Throws:
java.io.IOException
-
sizeOfEntry
public long sizeOfEntry(KvEntry entry)
- Specified by:
sizeOfEntryin interfaceBlockBuilder
-
size
public long size()
- Specified by:
sizein interfaceBlockBuilder
-
finish
public void finish()
- Specified by:
finishin interfaceBlockBuilder
-
reset
public void reset()
- Specified by:
resetin interfaceBlockBuilder
-
-