use of org.apache.calcite.adapter.cassandra.CassandraSchema in project drill by apache.
the class CassandraRootDrillSchema method createSubSchema.
private Schema createSubSchema(String schemaName) {
Map<String, Object> configs = new HashMap<>(configMap);
configs.put("keyspace", schemaName);
SchemaPlus parentSchema = parent.getSubSchema(parentName);
Schema schema = new CassandraDrillSchema(schemaName, plugin, (CassandraSchema) schemaFactory.create(parentSchema, schemaName, configs));
parentSchema.add(schemaName, schema);
return schema;
}
Aggregations