public class JdbcStoragePlugin extends AbstractStoragePlugin
contextDEFAULT_WS_NAME| Constructor and Description |
|---|
JdbcStoragePlugin(JdbcStorageConfig config,
DrillbitContext context,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
JdbcStorageConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig.
|
DataSource |
getDataSource() |
org.apache.calcite.sql.SqlDialect |
getDialect() |
Set<org.apache.calcite.plan.RelOptRule> |
getPhysicalOptimizerRules(OptimizerRulesContext context) |
void |
registerSchemas(SchemaConfig config,
org.apache.calcite.schema.SchemaPlus parent)
Register the schemas provided by this SchemaFactory implementation under the given parent schema.
|
boolean |
supportsRead()
Indicates if Drill can read the table from this format.
|
getContext, getFormatPlugin, getLogicalOptimizerRules, getName, getOptimizerRules, getOptimizerRules, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, start, supportsWritepublic JdbcStoragePlugin(JdbcStorageConfig config, DrillbitContext context, String name)
public void registerSchemas(SchemaConfig config, org.apache.calcite.schema.SchemaPlus parent)
SchemaFactoryconfig - Configuration for schema objects.parent - Reference to parent schema.public JdbcStorageConfig getConfig()
StoragePluginpublic boolean supportsRead()
StoragePluginsupportsRead in interface StoragePluginsupportsRead in class AbstractStoragePluginpublic DataSource getDataSource()
public org.apache.calcite.sql.SqlDialect getDialect()
public Set<org.apache.calcite.plan.RelOptRule> getPhysicalOptimizerRules(OptimizerRulesContext context)
getPhysicalOptimizerRules in class AbstractStoragePluginpublic void close()
close in interface AutoCloseableclose in class AbstractStoragePluginCopyright © 2021 The Apache Software Foundation. All rights reserved.