Package org.apache.calcite.adapter.jdbc
Class JdbcSchema.Factory
java.lang.Object
org.apache.calcite.adapter.jdbc.JdbcSchema.Factory
- All Implemented Interfaces:
- SchemaFactory
- Enclosing class:
- JdbcSchema
Schema factory that creates a
 
JdbcSchema.
 This allows you to create a jdbc schema inside a model.json file, like this:
 {
   "version": "1.0",
   "defaultSchema": "FOODMART_CLONE",
   "schemas": [
     {
       "name": "FOODMART_CLONE",
       "type": "custom",
       "factory": "org.apache.calcite.adapter.jdbc.JdbcSchema$Factory",
       "operand": {
         "jdbcDriver": "com.mysql.jdbc.Driver",
         "jdbcUrl": "jdbc:mysql://localhost/foodmart",
         "jdbcUser": "foodmart",
         "jdbcPassword": "foodmart"
       }
     }
   ]
 }- 
Field SummaryFields
- 
Method Summary
- 
Field Details- 
INSTANCE
 
- 
- 
Method Details- 
createDescription copied from interface:SchemaFactoryCreates a Schema.- Specified by:
- createin interface- SchemaFactory
- Parameters:
- parentSchema- Parent schema
- name- Name of this schema
- operand- The "operand" JSON property
- Returns:
- Created schema
 
 
-