public abstract class AbstractStoragePlugin extends Object implements StoragePlugin
| Modifier and Type | Field and Description |
|---|---|
protected DrillbitContext |
context |
DEFAULT_WS_NAME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStoragePlugin(DrillbitContext inContext,
String inName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DrillbitContext |
getContext() |
FormatPlugin |
getFormatPlugin(FormatPluginConfig config)
Allows to get the format plugin for current storage plugin based on appropriate format plugin config usage.
|
Set<? extends org.apache.calcite.plan.RelOptRule> |
getLogicalOptimizerRules(OptimizerRulesContext optimizerContext)
Deprecated.
Marking for deprecation in next major version release. Use
getOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase) |
String |
getName() |
Set<? extends org.apache.calcite.plan.RelOptRule> |
getOptimizerRules(OptimizerRulesContext optimizerContext)
Deprecated.
Marking for deprecation in next major version release. Use
getOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase) |
Set<? extends org.apache.calcite.plan.RelOptRule> |
getOptimizerRules(OptimizerRulesContext optimizerContext,
PlannerPhase phase)
TODO: Move this method to
StoragePlugin interface in next major version release. |
Set<? extends org.apache.calcite.plan.RelOptRule> |
getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext)
Deprecated.
Marking for deprecation in next major version release. Use
getOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase) |
AbstractGroupScan |
getPhysicalScan(String userName,
JSONOptions selection)
Get the physical scan operator for the particular GroupScan (read) node.
|
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)
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.
|
void |
start()
Initialize the storage plugin.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigregisterSchemasprotected final DrillbitContext context
protected AbstractStoragePlugin(DrillbitContext inContext, String inName)
public boolean supportsRead()
StoragePluginsupportsRead in interface StoragePluginpublic boolean supportsWrite()
StoragePluginsupportsWrite in interface StoragePlugin@Deprecated public Set<? extends org.apache.calcite.plan.RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext)
getOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase)StoragePlugingetOptimizerRules in interface StoragePlugin@Deprecated public Set<? extends org.apache.calcite.plan.RelOptRule> getLogicalOptimizerRules(OptimizerRulesContext optimizerContext)
getOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase)@Deprecated public Set<? extends org.apache.calcite.plan.RelOptRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext)
getOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase)public Set<? extends org.apache.calcite.plan.RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext, PlannerPhase phase)
StoragePlugin interface in next major version release.public AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, SessionOptionManager options) throws IOException
StoragePlugingetPhysicalScan in interface StoragePluginuserName - 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 StoragePluginuserName - 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) throws IOException
StoragePlugingetPhysicalScan in interface StoragePluginuserName - User whom to impersonate when when reading the contents as part of Scan.selection - The configured storage engine specific selection.IOExceptionpublic AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns, SessionOptionManager options) throws IOException
StoragePlugingetPhysicalScan in interface StoragePluginuserName - 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 optionsIOExceptionpublic AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns, SessionOptionManager options, MetadataProviderManager metadataProviderManager) throws IOException
StoragePlugingetPhysicalScan in interface StoragePluginuserName - 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 AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns) throws IOException
StoragePlugingetPhysicalScan in interface StoragePluginuserName - 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 void start()
throws IOException
StoragePluginstart in interface StoragePluginIOExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic FormatPlugin getFormatPlugin(FormatPluginConfig config)
StoragePlugingetFormatPlugin in interface StoragePluginconfig - format plugin configpublic String getName()
getName in interface StoragePluginpublic DrillbitContext getContext()
Copyright © 2022 The Apache Software Foundation. All rights reserved.