Class StreamGraphOutput

  • All Implemented Interfaces:
    org.apache.hugegraph.computer.core.io.GraphComputeOutput, org.apache.hugegraph.computer.core.io.GraphOutput

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

      Constructors 
      Constructor Description
      StreamGraphOutput​(org.apache.hugegraph.computer.core.common.ComputerContext context, EntryOutput out)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void writeEdges​(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)  
      void writeId​(org.apache.hugegraph.computer.core.io.RandomAccessOutput out, org.apache.hugegraph.computer.core.graph.id.Id id)  
      void writeMessage​(org.apache.hugegraph.computer.core.graph.id.Id id, org.apache.hugegraph.computer.core.graph.value.Value value)  
      void writeValue​(org.apache.hugegraph.computer.core.io.RandomAccessOutput out, org.apache.hugegraph.computer.core.graph.value.Value value)  
      void writeVertex​(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)  
      • Methods inherited from class java.lang.Object

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

      • StreamGraphOutput

        public StreamGraphOutput​(org.apache.hugegraph.computer.core.common.ComputerContext context,
                                 EntryOutput out)
    • Method Detail

      • writeVertex

        public void writeVertex​(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)
                         throws java.io.IOException
        Specified by:
        writeVertex in interface org.apache.hugegraph.computer.core.io.GraphComputeOutput
        Throws:
        java.io.IOException
      • writeEdges

        public void writeEdges​(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)
                        throws java.io.IOException
        Specified by:
        writeEdges in interface org.apache.hugegraph.computer.core.io.GraphComputeOutput
        Throws:
        java.io.IOException
      • writeMessage

        public void writeMessage​(org.apache.hugegraph.computer.core.graph.id.Id id,
                                 org.apache.hugegraph.computer.core.graph.value.Value value)
                          throws java.io.IOException
        Specified by:
        writeMessage in interface org.apache.hugegraph.computer.core.io.GraphComputeOutput
        Throws:
        java.io.IOException
      • writeId

        public void writeId​(org.apache.hugegraph.computer.core.io.RandomAccessOutput out,
                            org.apache.hugegraph.computer.core.graph.id.Id id)
                     throws java.io.IOException
        Specified by:
        writeId in interface org.apache.hugegraph.computer.core.io.GraphComputeOutput
        Throws:
        java.io.IOException
      • writeValue

        public void writeValue​(org.apache.hugegraph.computer.core.io.RandomAccessOutput out,
                               org.apache.hugegraph.computer.core.graph.value.Value value)
                        throws java.io.IOException
        Specified by:
        writeValue in interface org.apache.hugegraph.computer.core.io.GraphComputeOutput
        Throws:
        java.io.IOException