Interface EntryOutput
-
- All Known Implementing Classes:
EntryOutputImpl
public interface EntryOutput
-
-
Method Summary
All Methods Instance Methods Abstract 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
KvEntryWriter writeEntry(org.apache.hugegraph.computer.core.io.Writable key) throws java.io.IOException
Write 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 |- Throws:
java.io.IOException
-
writeEntry
void writeEntry(org.apache.hugegraph.computer.core.io.Writable key, org.apache.hugegraph.computer.core.io.Writable value) throws java.io.IOExceptionWrite entry with single value. Used when write vertex without edges and write message. The output format: | key length | key | value length | value |- Throws:
java.io.IOException
-
-