Search in sources :

Example 1 with NestedEdgeSchema

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);
}
Also used : Direction(org.apache.tinkerpop.gremlin.structure.Direction) NestedEdgeSchema(org.unipop.elastic.document.schema.nested.NestedEdgeSchema)

Aggregations

Direction (org.apache.tinkerpop.gremlin.structure.Direction)1 NestedEdgeSchema (org.unipop.elastic.document.schema.nested.NestedEdgeSchema)1