Interface EntryInput

  • All Known Implementing Classes:
    EntryInputImpl

    public interface EntryInput
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • readEntry

        KvEntryReader readEntry​(org.apache.hugegraph.computer.core.io.Readable key)
                         throws java.io.IOException
        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 |
        Throws:
        java.io.IOException
      • readEntry

        void readEntry​(org.apache.hugegraph.computer.core.io.Readable key,
                       org.apache.hugegraph.computer.core.io.Readable value)
                throws java.io.IOException
        Read entry with single value. Used when read vertex without edges and read message. The output format: | key length | key | value length | value |
        Throws:
        java.io.IOException