Class StreamGraphInput

  • All Implemented Interfaces:
    org.apache.hugegraph.computer.core.io.GraphComputeInput, org.apache.hugegraph.computer.core.io.GraphInput

    public class StreamGraphInput
    extends java.lang.Object
    implements org.apache.hugegraph.computer.core.io.GraphComputeInput
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamGraphInput​(org.apache.hugegraph.computer.core.common.ComputerContext context, EntryInput in)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.hugegraph.computer.core.graph.vertex.Vertex readEdges()  
      static org.apache.hugegraph.computer.core.graph.id.Id readId​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)  
      static java.lang.String readLabel​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)  
      org.apache.commons.lang3.tuple.Pair<org.apache.hugegraph.computer.core.graph.id.Id,​org.apache.hugegraph.computer.core.graph.value.Value> readMessage()  
      org.apache.hugegraph.computer.core.graph.value.Value readValue​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)  
      org.apache.hugegraph.computer.core.graph.vertex.Vertex readVertex()  
      • Methods inherited from class java.lang.Object

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

      • StreamGraphInput

        public StreamGraphInput​(org.apache.hugegraph.computer.core.common.ComputerContext context,
                                EntryInput in)
    • Method Detail

      • readVertex

        public org.apache.hugegraph.computer.core.graph.vertex.Vertex readVertex()
                                                                          throws java.io.IOException
        Specified by:
        readVertex in interface org.apache.hugegraph.computer.core.io.GraphComputeInput
        Throws:
        java.io.IOException
      • readEdges

        public org.apache.hugegraph.computer.core.graph.vertex.Vertex readEdges()
                                                                         throws java.io.IOException
        Specified by:
        readEdges in interface org.apache.hugegraph.computer.core.io.GraphComputeInput
        Throws:
        java.io.IOException
      • readMessage

        public org.apache.commons.lang3.tuple.Pair<org.apache.hugegraph.computer.core.graph.id.Id,​org.apache.hugegraph.computer.core.graph.value.Value> readMessage()
                                                                                                                                                                   throws java.io.IOException
        Specified by:
        readMessage in interface org.apache.hugegraph.computer.core.io.GraphComputeInput
        Throws:
        java.io.IOException
      • readValue

        public org.apache.hugegraph.computer.core.graph.value.Value readValue​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)
                                                                       throws java.io.IOException
        Specified by:
        readValue in interface org.apache.hugegraph.computer.core.io.GraphComputeInput
        Throws:
        java.io.IOException
      • readId

        public static org.apache.hugegraph.computer.core.graph.id.Id readId​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)
                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readLabel

        public static java.lang.String readLabel​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)
                                          throws java.io.IOException
        Throws:
        java.io.IOException