Class JsonStructGraphOutput

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

    public class JsonStructGraphOutput
    extends StructGraphOutput
    • 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:
        writeObjectStart in class StructGraphOutput
        Throws:
        java.io.IOException
      • writeObjectEnd

        public void writeObjectEnd()
                            throws java.io.IOException
        Specified by:
        writeObjectEnd in class StructGraphOutput
        Throws:
        java.io.IOException
      • writeArrayStart

        public void writeArrayStart()
                             throws java.io.IOException
        Specified by:
        writeArrayStart in class StructGraphOutput
        Throws:
        java.io.IOException
      • writeArrayEnd

        public void writeArrayEnd()
                           throws java.io.IOException
        Specified by:
        writeArrayEnd in class StructGraphOutput
        Throws:
        java.io.IOException
      • writeKey

        public void writeKey​(java.lang.String key)
                      throws java.io.IOException
        Specified by:
        writeKey in class StructGraphOutput
        Throws:
        java.io.IOException
      • writeJoiner

        public void writeJoiner()
                         throws java.io.IOException
        Specified by:
        writeJoiner in class StructGraphOutput
        Throws:
        java.io.IOException
      • writeSplitter

        public void writeSplitter()
                           throws java.io.IOException
        Specified by:
        writeSplitter in class StructGraphOutput
        Throws:
        java.io.IOException