Class StreamGraphOutput
- java.lang.Object
-
- org.apache.hugegraph.computer.core.io.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 voidwriteEdges(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)voidwriteId(org.apache.hugegraph.computer.core.io.RandomAccessOutput out, org.apache.hugegraph.computer.core.graph.id.Id id)voidwriteMessage(org.apache.hugegraph.computer.core.graph.id.Id id, org.apache.hugegraph.computer.core.graph.value.Value value)voidwriteValue(org.apache.hugegraph.computer.core.io.RandomAccessOutput out, org.apache.hugegraph.computer.core.graph.value.Value value)voidwriteVertex(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)
-
-
-
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:
writeVertexin interfaceorg.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:
writeEdgesin interfaceorg.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:
writeMessagein interfaceorg.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:
writeIdin interfaceorg.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:
writeValuein interfaceorg.apache.hugegraph.computer.core.io.GraphComputeOutput- Throws:
java.io.IOException
-
-