Class DruidStoragePlugin
java.lang.Object
org.apache.drill.exec.store.AbstractStoragePlugin
org.apache.drill.exec.store.druid.DruidStoragePlugin
- All Implemented Interfaces:
AutoCloseable,SchemaFactory,StoragePlugin
-
Field Summary
Fields inherited from interface org.apache.drill.exec.store.SchemaFactory
DEFAULT_WS_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDruidStoragePlugin(DruidStoragePluginConfig pluginConfig, DrillbitContext context, String name) -
Method Summary
Modifier and TypeMethodDescriptionMethod returns a Jackson serializable object that extends a StoragePluginConfig.getOptimizerRules(OptimizerRulesContext optimizerRulesContext, PlannerPhase phase) An implementation of this method will return one or more specialized rules that Drill query optimizer can leverage in physical space.getPhysicalScan(String userName, JSONOptions selection) Get the physical scan operator for the particular GroupScan (read) node.voidregisterSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) Register the schemas provided by this SchemaFactory implementation under the given parent schema.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
close, getFormatPlugin, getName, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, onDisabled, onEnabled, start, supportsInsert, toString
-
Constructor Details
-
DruidStoragePlugin
public DruidStoragePlugin(DruidStoragePluginConfig pluginConfig, DrillbitContext context, String name)
-
-
Method Details
-
getPhysicalScan
Description copied from interface:StoragePluginGet the physical scan operator for the particular GroupScan (read) node.- Specified by:
getPhysicalScanin interfaceStoragePlugin- Overrides:
getPhysicalScanin classAbstractStoragePlugin- Parameters:
userName- User whom to impersonate when when reading the contents as part of Scan.selection- The configured storage engine specific selection.- Returns:
- The physical scan operator for the particular GroupScan (read) node.
- Throws:
IOException
-
getOptimizerRules
public Set<StoragePluginOptimizerRule> getOptimizerRules(OptimizerRulesContext optimizerRulesContext, 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.
-
registerSchemas
Description copied from interface:SchemaFactoryRegister the schemas provided by this SchemaFactory implementation under the given parent schema.- Parameters:
schemaConfig- Configuration for schema objects.parent- Reference to parent schema.
-
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
-
getConfig
Description copied from interface:StoragePluginMethod returns a Jackson serializable object that extends a StoragePluginConfig.- Returns:
- an extension of StoragePluginConfig
-
getContext
- Overrides:
getContextin classAbstractStoragePlugin
-
getAdminClient
-
getDruidQueryClient
-
getScanQueryBuilder
-