Class JsonStructGraphOutput
- java.lang.Object
-
- org.apache.hugegraph.computer.core.io.StructGraphOutput
-
- org.apache.hugegraph.computer.core.io.JsonStructGraphOutput
-
- All Implemented Interfaces:
org.apache.hugegraph.computer.core.io.GraphOutput,org.apache.hugegraph.computer.core.io.GraphWritebackOutput
public class JsonStructGraphOutput extends StructGraphOutput
-
-
Field Summary
-
Fields inherited from class org.apache.hugegraph.computer.core.io.StructGraphOutput
config, out
-
-
Constructor Summary
Constructors Constructor Description JsonStructGraphOutput(org.apache.hugegraph.computer.core.common.ComputerContext context, StructRandomAccessOutput out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteArrayEnd()voidwriteArrayStart()voidwriteEdge(org.apache.hugegraph.computer.core.graph.edge.Edge edge)voidwriteEdges(org.apache.hugegraph.computer.core.graph.edge.Edges edges)voidwriteJoiner()voidwriteKey(java.lang.String key)voidwriteObjectEnd()voidwriteObjectStart()voidwriteProperties(org.apache.hugegraph.computer.core.graph.properties.Properties properties)voidwriteSplitter()voidwriteVertex(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)-
Methods inherited from class org.apache.hugegraph.computer.core.io.StructGraphOutput
writeId, writeLineEnd, writeLineStart, writeValue
-
-
-
-
Constructor Detail
-
JsonStructGraphOutput
public JsonStructGraphOutput(org.apache.hugegraph.computer.core.common.ComputerContext context, StructRandomAccessOutput out)
-
-
Method Detail
-
writeVertex
public void writeVertex(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex) throws java.io.IOException- Throws:
java.io.IOException
-
writeEdges
public void writeEdges(org.apache.hugegraph.computer.core.graph.edge.Edges edges) throws java.io.IOException- Throws:
java.io.IOException
-
writeEdge
public void writeEdge(org.apache.hugegraph.computer.core.graph.edge.Edge edge) throws java.io.IOException- Throws:
java.io.IOException
-
writeProperties
public void writeProperties(org.apache.hugegraph.computer.core.graph.properties.Properties properties) throws java.io.IOException- Throws:
java.io.IOException
-
writeObjectStart
public void writeObjectStart() throws java.io.IOException- Specified by:
writeObjectStartin classStructGraphOutput- Throws:
java.io.IOException
-
writeObjectEnd
public void writeObjectEnd() throws java.io.IOException- Specified by:
writeObjectEndin classStructGraphOutput- Throws:
java.io.IOException
-
writeArrayStart
public void writeArrayStart() throws java.io.IOException- Specified by:
writeArrayStartin classStructGraphOutput- Throws:
java.io.IOException
-
writeArrayEnd
public void writeArrayEnd() throws java.io.IOException- Specified by:
writeArrayEndin classStructGraphOutput- Throws:
java.io.IOException
-
writeKey
public void writeKey(java.lang.String key) throws java.io.IOException- Specified by:
writeKeyin classStructGraphOutput- Throws:
java.io.IOException
-
writeJoiner
public void writeJoiner() throws java.io.IOException- Specified by:
writeJoinerin classStructGraphOutput- Throws:
java.io.IOException
-
writeSplitter
public void writeSplitter() throws java.io.IOException- Specified by:
writeSplitterin classStructGraphOutput- Throws:
java.io.IOException
-
-