Class 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
      KvEntryReader readEntry​(org.apache.hugegraph.computer.core.io.Readable key)
      Read entry with multiple sub-key and sub-value.
      void readEntry​(org.apache.hugegraph.computer.core.io.Readable key, org.apache.hugegraph.computer.core.io.Readable value)
      Read entry with single value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EntryInputImpl

        public EntryInputImpl​(org.apache.hugegraph.computer.core.io.RandomAccessInput input)
    • Method Detail

      • readEntry

        public KvEntryReader readEntry​(org.apache.hugegraph.computer.core.io.Readable key)
                                throws java.io.IOException
        Description copied from interface: EntryInput
        Read 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:
        readEntry in interface EntryInput
        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.IOException
        Description copied from interface: EntryInput
        Read entry with single value. Used when read vertex without edges and read message. The output format: | key length | key | value length | value |
        Specified by:
        readEntry in interface EntryInput
        Throws:
        java.io.IOException