Class EntryInputImpl
- java.lang.Object
-
- org.apache.hugegraph.computer.core.store.entry.EntryInputImpl
-
- All Implemented Interfaces:
EntryInput
public class EntryInputImpl extends java.lang.Object implements EntryInput
-
-
Constructor Summary
Constructors Constructor Description EntryInputImpl(org.apache.hugegraph.computer.core.io.RandomAccessInput input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KvEntryReaderreadEntry(org.apache.hugegraph.computer.core.io.Readable key)Read entry with multiple sub-key and sub-value.voidreadEntry(org.apache.hugegraph.computer.core.io.Readable key, org.apache.hugegraph.computer.core.io.Readable value)Read entry with single value.
-
-
-
Method Detail
-
readEntry
public KvEntryReader readEntry(org.apache.hugegraph.computer.core.io.Readable key) throws java.io.IOException
Description copied from interface:EntryInputRead entry with multiple sub-key and sub-value. Used when read 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:
readEntryin interfaceEntryInput- Throws:
java.io.IOException
-
readEntry
public void readEntry(org.apache.hugegraph.computer.core.io.Readable key, org.apache.hugegraph.computer.core.io.Readable value) throws java.io.IOExceptionDescription copied from interface:EntryInputRead entry with single value. Used when read vertex without edges and read message. The output format: | key length | key | value length | value |- Specified by:
readEntryin interfaceEntryInput- Throws:
java.io.IOException
-
-