Package org.apache.drill.exec.store.jdbc
Class JdbcStoragePlugin
java.lang.Object
org.apache.drill.exec.store.AbstractStoragePlugin
org.apache.drill.exec.store.jdbc.JdbcStoragePlugin
- All Implemented Interfaces:
AutoCloseable,SchemaFactory,StoragePlugin
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.AbstractStoragePlugin
contextFields inherited from interface org.apache.drill.exec.store.SchemaFactory
DEFAULT_WS_NAME -
Constructor Summary
ConstructorsConstructorDescriptionJdbcStoragePlugin(JdbcStorageConfig jdbcStorageConfig, DrillbitContext context, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Method returns a Jackson serializable object that extends a StoragePluginConfig.getConvention(org.apache.calcite.sql.SqlDialect dialect, UserBitShared.UserCredentials userCredentials) getDataSource(UserBitShared.UserCredentials userCredentials) org.apache.calcite.sql.SqlDialectgetDialect(UserBitShared.UserCredentials userCredentials) getJdbcDialect(org.apache.calcite.sql.SqlDialect dialect) Set<? extends org.apache.calcite.plan.RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext, PlannerPhase phase) An implementation of this method will return one or more specialized rules that Drill query optimizer can leverage in physical space.voidregisterSchemas(SchemaConfig config, org.apache.calcite.schema.SchemaPlus parent) Register the schemas provided by this SchemaFactory implementation under the given parent schema.booleanIndicates if Drill can insert to a table to this plugin.booleanIndicates if Drill can read the table from this format.booleanIndicates if Drill can write a table to this format (e.g.Methods inherited from class org.apache.drill.exec.store.AbstractStoragePlugin
getContext, getFormatPlugin, getName, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, onDisabled, onEnabled, start, toString
-
Constructor Details
-
JdbcStoragePlugin
-
-
Method Details
-
registerSchemas
Description copied from interface:SchemaFactoryRegister the schemas provided by this SchemaFactory implementation under the given parent schema.- Parameters:
config- Configuration for schema objects.parent- Reference to parent schema.
-
getJdbcDialect
-
getConfig
Description copied from interface:StoragePluginMethod returns a Jackson serializable object that extends a StoragePluginConfig.- Returns:
- an extension of StoragePluginConfig
-
supportsRead
public boolean supportsRead()Description copied from interface:StoragePluginIndicates if Drill can read the table from this format.- Specified by:
supportsReadin interfaceStoragePlugin- Overrides:
supportsReadin classAbstractStoragePlugin
-
supportsWrite
public boolean supportsWrite()Description copied from interface:StoragePluginIndicates if Drill can write a table to this format (e.g. as JSON, csv, etc.).- Specified by:
supportsWritein interfaceStoragePlugin- Overrides:
supportsWritein classAbstractStoragePlugin
-
supportsInsert
public boolean supportsInsert()Description copied from interface:StoragePluginIndicates if Drill can insert to a table to this plugin.- Specified by:
supportsInsertin interfaceStoragePlugin- Overrides:
supportsInsertin classAbstractStoragePlugin
-
getOptimizerRules
public Set<? extends org.apache.calcite.plan.RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext, PlannerPhase phase) Description copied from interface:StoragePluginAn implementation of this method will return one or more specialized rules that Drill query optimizer can leverage in physical space. Otherwise, it should return an empty set.- Returns:
- an empty set or a set of plugin specific physical optimizer rules.
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractStoragePlugin- Throws:
Exception
-