public class JdbcStoragePlugin extends AbstractStoragePlugin
context
DEFAULT_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.
|
DrillJdbcConvention |
getConvention() |
DataSource |
getDataSource() |
org.apache.calcite.sql.SqlDialect |
getDialect() |
JdbcDialect |
getJdbcDialect() |
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.
|
boolean |
supportsWrite()
Indicates if Drill can write a table to this format (e.g.
|
getContext, getFormatPlugin, getLogicalOptimizerRules, getName, getOptimizerRules, getOptimizerRules, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, start
public JdbcStoragePlugin(JdbcStorageConfig config, DrillbitContext context, String name)
public void registerSchemas(SchemaConfig config, org.apache.calcite.schema.SchemaPlus parent)
SchemaFactory
config
- Configuration for schema objects.parent
- Reference to parent schema.public JdbcDialect getJdbcDialect()
public DrillJdbcConvention getConvention()
public JdbcStorageConfig getConfig()
StoragePlugin
public boolean supportsRead()
StoragePlugin
supportsRead
in interface StoragePlugin
supportsRead
in class AbstractStoragePlugin
public boolean supportsWrite()
StoragePlugin
supportsWrite
in interface StoragePlugin
supportsWrite
in class AbstractStoragePlugin
public DataSource getDataSource()
public org.apache.calcite.sql.SqlDialect getDialect()
public Set<org.apache.calcite.plan.RelOptRule> getPhysicalOptimizerRules(OptimizerRulesContext context)
getPhysicalOptimizerRules
in class AbstractStoragePlugin
public void close()
close
in interface AutoCloseable
close
in class AbstractStoragePlugin
Copyright © 1970 The Apache Software Foundation. All rights reserved.