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.type.schema.EdgeLabel;
|
2017-05-22 11:28:15 +08:00
|
|
|
import com.baidu.hugegraph.type.schema.IndexLabel;
|
2017-05-18 16:12:04 +08:00
|
|
|
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);
|
|
|
|
|
|
2017-06-29 13:22:35 +08:00
|
|
|
public String writePropertyKeys(List<PropertyKey> propertyKeys);
|
2017-05-18 16:12:04 +08:00
|
|
|
|
|
|
|
|
public String writeVertexLabel(VertexLabel vertexLabel);
|
|
|
|
|
|
2017-06-29 13:22:35 +08:00
|
|
|
public String writeVertexLabels(List<VertexLabel> vertexLabels);
|
2017-05-18 16:12:04 +08:00
|
|
|
|
|
|
|
|
public String writeEdgeLabel(EdgeLabel edgeLabel);
|
|
|
|
|
|
2017-06-29 13:22:35 +08:00
|
|
|
public String writeEdgeLabels(List<EdgeLabel> edgeLabels);
|
2017-05-18 16:12:04 +08:00
|
|
|
|
2017-05-22 11:28:15 +08:00
|
|
|
public String writeIndexlabel(IndexLabel indexLabel);
|
|
|
|
|
|
2017-06-29 13:22:35 +08:00
|
|
|
public String writeIndexlabels(List<IndexLabel> indexLabels);
|
2017-05-22 11:28:15 +08:00
|
|
|
|
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
|
|
|
}
|