public static class CloneSchema.Factory extends Object implements SchemaFactory
CloneSchema.
This allows you to create a clone schema inside a model.json file.
{
version: '1.0',
defaultSchema: 'FOODMART_CLONE',
schemas: [
{
name: 'FOODMART_CLONE',
type: 'custom',
factory: 'org.apache.calcite.adapter.clone.CloneSchema$Factory',
operand: {
jdbcDriver: 'com.mysql.jdbc.Driver',
jdbcUrl: 'jdbc:mysql://localhost/foodmart',
jdbcUser: 'foodmart',
jdbcPassword: 'foodmart'
}
}
]
}
| Constructor and Description |
|---|
CloneSchema.Factory() |
public Schema create(SchemaPlus parentSchema, String name, Map<String,Object> operand)
SchemaFactorycreate in interface SchemaFactoryparentSchema - Parent schemaname - Name of this schemaoperand - The "operand" JSON propertyCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.