Package org.apache.drill.exec.store.sys
Class SystemTablePlugin
java.lang.Object
org.apache.drill.exec.store.AbstractStoragePlugin
org.apache.drill.exec.store.sys.SystemTablePlugin
- All Implemented Interfaces:
AutoCloseable,SchemaFactory,StoragePlugin
A "storage" plugin for system tables.
-
Field Summary
FieldsFields inherited from class org.apache.drill.exec.store.AbstractStoragePlugin
contextFields inherited from interface org.apache.drill.exec.store.SchemaFactory
DEFAULT_WS_NAME -
Constructor Summary
ConstructorsConstructorDescriptionSystemTablePlugin(DrillbitContext context) SystemTablePlugin(SystemTablePluginConfig config, DrillbitContext context, String name) -
Method Summary
Modifier and TypeMethodDescriptionMethod returns a Jackson serializable object that extends a StoragePluginConfig.getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns) 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.Methods inherited from class org.apache.drill.exec.store.AbstractStoragePlugin
close, getContext, getFormatPlugin, getName, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, onDisabled, onEnabled, start, supportsInsert, supportsRead, supportsWrite, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.drill.exec.store.StoragePlugin
getOptimizerRules
-
Field Details
-
SYS_SCHEMA_NAME
- See Also:
-
-
Constructor Details
-
SystemTablePlugin
-
SystemTablePlugin
-
-
Method Details
-
getConfig
Description copied from interface:StoragePluginMethod returns a Jackson serializable object that extends a StoragePluginConfig.- Returns:
- an extension of StoragePluginConfig
-
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.
-
getPhysicalScan
public AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns) 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 reading the contents as part of Scan.selection- The configured storage engine specific selection.columns- (optional) The list of column names to scan from the data source.- Returns:
- The physical scan operator for the particular GroupScan (read) node.
-