Class EntryOutputImpl
- java.lang.Object
-
- org.apache.hugegraph.computer.core.store.entry.EntryOutputImpl
-
- All Implemented Interfaces:
EntryOutput
public class EntryOutputImpl extends java.lang.Object implements EntryOutput
-
-
Constructor Summary
Constructors Constructor Description EntryOutputImpl(org.apache.hugegraph.computer.core.io.RandomAccessOutput output)EntryOutputImpl(org.apache.hugegraph.computer.core.io.RandomAccessOutput output, boolean needSortSubKv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KvEntryWriterwriteEntry(org.apache.hugegraph.computer.core.io.Writable key)Write entry with multiple sub-key and sub-value.voidwriteEntry(org.apache.hugegraph.computer.core.io.Writable key, org.apache.hugegraph.computer.core.io.Writable value)Write entry with single value.
-
-
-
Method Detail
-
writeEntry
public KvEntryWriter writeEntry(org.apache.hugegraph.computer.core.io.Writable key) throws java.io.IOException
Description copied from interface:EntryOutputWrite entry with multiple sub-key and sub-value. Used when write vertex with edges, each sub-key is target id of an edge, each sub-value is the properties of an edge. The output format: | key length | key | total sub-entry length | sub-entry count | | sub-key1 length | sub-key1 | sub-value1 length | sub-value1 | | sub-key2 length | sub-key2 | sub-value2 length | sub-value2 |- Specified by:
writeEntryin interfaceEntryOutput- Throws:
java.io.IOException
-
writeEntry
public void writeEntry(org.apache.hugegraph.computer.core.io.Writable key, org.apache.hugegraph.computer.core.io.Writable value) throws java.io.IOExceptionDescription copied from interface:EntryOutputWrite entry with single value. Used when write vertex without edges and write message. The output format: | key length | key | value length | value |- Specified by:
writeEntryin interfaceEntryOutput- Throws:
java.io.IOException
-
-