Search in sources :

Example 1 with ContextManager

use of org.unipop.jdbc.utils.ContextManager in project unipop by unipop-graph.

the class JdbcSourceProvider method init.

@Override
public Set<UniQueryController> init(UniGraph graph, JSONObject configuration, TraversalFilter traversalFilter) throws Exception {
    this.contextManager = new ContextManager(configuration);
    this.graph = graph;
    Set<JdbcSchema> schemas = Sets.newHashSet();
    getList(configuration, "vertices").forEach(vertexJson -> schemas.add(createVertexSchema(vertexJson)));
    getList(configuration, "edges").forEach(edgeJson -> schemas.add(createEdgeSchema(edgeJson)));
    return createControllers(schemas, traversalFilter);
}
Also used : JdbcSchema(org.unipop.jdbc.schemas.jdbc.JdbcSchema) ContextManager(org.unipop.jdbc.utils.ContextManager)

Aggregations

JdbcSchema (org.unipop.jdbc.schemas.jdbc.JdbcSchema)1 ContextManager (org.unipop.jdbc.utils.ContextManager)1