use of org.unipop.elastic.document.schema.nested.NestedEdgeSchema in project unipop by unipop-graph.
the class DocVertexSchema method getEdgeSchema.
private EdgeSchema getEdgeSchema(JSONObject edgeJson) throws JSONException {
String path = edgeJson.optString("path", null);
Direction direction = Direction.valueOf(edgeJson.optString("direction"));
if (path == null)
return new InnerEdgeSchema(this, direction, index, type, edgeJson, client, graph);
return new NestedEdgeSchema(this, direction, index, type, path, edgeJson, client, graph);
}
Aggregations