public class FileSystemPlugin extends AbstractStoragePlugin
contextDEFAULT_WS_NAME| Constructor and Description |
|---|
FileSystemPlugin(FileSystemConfig config,
DrillbitContext context,
String name) |
| Modifier and Type | Method and Description |
|---|---|
StoragePluginConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig.
|
FormatPlugin |
getFormatPlugin(FormatPluginConfig config)
If format plugin configuration is for named format plugin, will return
format plugin from pre-loaded list by name.
|
FormatPlugin |
getFormatPlugin(String name) |
org.apache.hadoop.conf.Configuration |
getFsConf() |
Set<? extends org.apache.calcite.plan.RelOptRule> |
getOptimizerRules(OptimizerRulesContext optimizerContext,
PlannerPhase phase)
TODO: Move this method to
StoragePlugin interface in next major version release. |
AbstractGroupScan |
getPhysicalScan(String userName,
JSONOptions selection,
List<SchemaPath> columns)
Get the physical scan operator for the particular GroupScan (read) node.
|
AbstractGroupScan |
getPhysicalScan(String userName,
JSONOptions selection,
List<SchemaPath> columns,
SessionOptionManager options,
MetadataProviderManager metadataProviderManager)
Get the physical scan operator for the particular GroupScan (read) node.
|
AbstractGroupScan |
getPhysicalScan(String userName,
JSONOptions selection,
SessionOptionManager options)
Get the physical scan operator for the particular GroupScan (read) node.
|
AbstractGroupScan |
getPhysicalScan(String userName,
JSONOptions selection,
SessionOptionManager options,
MetadataProviderManager metadataProviderManager)
Get the physical scan operator for the particular GroupScan (read) node.
|
protected FormatCreator |
newFormatCreator(FileSystemConfig config,
DrillbitContext context,
org.apache.hadoop.conf.Configuration fsConf)
Creates a new FormatCreator instance.
|
void |
registerSchemas(SchemaConfig schemaConfig,
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.
|
close, getContext, getLogicalOptimizerRules, getName, getOptimizerRules, getPhysicalOptimizerRules, getPhysicalScan, getPhysicalScan, start, supportsWritepublic FileSystemPlugin(FileSystemConfig config, DrillbitContext context, String name) throws ExecutionSetupException
ExecutionSetupExceptionprotected FormatCreator newFormatCreator(FileSystemConfig config, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf)
config - the plugin configurationcontext - the drillbit contextpublic boolean supportsRead()
StoragePluginsupportsRead in interface StoragePluginsupportsRead in class AbstractStoragePluginpublic StoragePluginConfig getConfig()
StoragePluginpublic AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, SessionOptionManager options) throws IOException
StoragePlugingetPhysicalScan in interface StoragePlugingetPhysicalScan in class AbstractStoragePluginuserName - User whom to impersonate when when reading the contents as part of Scan.selection - The configured storage engine specific selection.options - (optional) session optionsIOExceptionpublic AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, SessionOptionManager options, MetadataProviderManager metadataProviderManager) throws IOException
StoragePlugingetPhysicalScan in interface StoragePlugingetPhysicalScan in class AbstractStoragePluginuserName - User whom to impersonate when when reading the contents as part of Scan.selection - The configured storage engine specific selection.options - (optional) session optionsmetadataProviderManager - manager for handling metadata providersIOExceptionpublic AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns) throws IOException
StoragePlugingetPhysicalScan in interface StoragePlugingetPhysicalScan in class AbstractStoragePluginuserName - User whom to impersonate when 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.IOExceptionpublic AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns, SessionOptionManager options, MetadataProviderManager metadataProviderManager) throws IOException
StoragePlugingetPhysicalScan in interface StoragePlugingetPhysicalScan in class AbstractStoragePluginuserName - User whom to impersonate when 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.options - (optional) session optionsmetadataProviderManager - manager for handling metadata providersIOExceptionpublic void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) throws IOException
SchemaFactoryschemaConfig - Configuration for schema objects.parent - Reference to parent schema.IOException - in case of error during schema registrationpublic FormatPlugin getFormatPlugin(String name)
public FormatPlugin getFormatPlugin(FormatPluginConfig config)
getFormatPlugin in interface StoragePlugingetFormatPlugin in class AbstractStoragePluginconfig - format plugin configurationpublic Set<? extends org.apache.calcite.plan.RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext, PlannerPhase phase)
AbstractStoragePluginStoragePlugin interface in next major version release.getOptimizerRules in class AbstractStoragePluginpublic org.apache.hadoop.conf.Configuration getFsConf()
Copyright © 2022 The Apache Software Foundation. All rights reserved.