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);
}
Aggregations