2017-05-17 21:16:40 +08:00
|
|
|
package com.baidu.hugegraph.serializer;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
2017-05-18 16:29:08 +08:00
|
|
|
import org.apache.tinkerpop.gremlin.structure.Edge;
|
2017-05-17 21:16:40 +08:00
|
|
|
import org.apache.tinkerpop.gremlin.structure.Vertex;
|
|
|
|
|
|
2017-05-18 16:12:04 +08:00
|
|
|
import com.baidu.hugegraph.schema.HugeEdgeLabel;
|
|
|
|
|
import com.baidu.hugegraph.schema.HugePropertyKey;
|
|
|
|
|
import com.baidu.hugegraph.schema.HugeVertexLabel;
|
|
|
|
|
import com.baidu.hugegraph.type.schema.EdgeLabel;
|
|
|
|
|
import com.baidu.hugegraph.type.schema.PropertyKey;
|
|
|
|
|
import com.baidu.hugegraph.type.schema.VertexLabel;
|
|
|
|
|
|
2017-05-17 21:16:40 +08:00
|
|
|
public interface Serializer {
|
|
|
|
|
|
2017-05-18 16:12:04 +08:00
|
|
|
public String writePropertyKey(PropertyKey propertyKey);
|
|
|
|
|
|
|
|
|
|
public String writePropertyKeys(List<HugePropertyKey> propertyKeys);
|
|
|
|
|
|
|
|
|
|
public String writeVertexLabel(VertexLabel vertexLabel);
|
|
|
|
|
|
|
|
|
|
public String writeVertexLabels(List<HugeVertexLabel> vertexLabels);
|
|
|
|
|
|
|
|
|
|
public String writeEdgeLabel(EdgeLabel edgeLabel);
|
|
|
|
|
|
|
|
|
|
public String writeEdgeLabels(List<HugeEdgeLabel> edgeLabels);
|
|
|
|
|
|
2017-05-17 21:16:40 +08:00
|
|
|
public String writeVertex(Vertex v);
|
|
|
|
|
|
|
|
|
|
public String writeVertices(List<Vertex> vertices);
|
2017-05-18 16:29:08 +08:00
|
|
|
|
|
|
|
|
public String writeEdge(Edge e);
|
|
|
|
|
|
|
|
|
|
public String writeEdges(List<Edge> edges);
|
2017-05-17 21:16:40 +08:00
|
|
|
}
|