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, wait
getConfig
registerSchemas
protected final DrillbitContext context
protected AbstractStoragePlugin(DrillbitContext inContext, String inName)
public boolean supportsRead()
StoragePlugin
supportsRead
in interface StoragePlugin
public boolean supportsWrite()
StoragePlugin
supportsWrite
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)
StoragePlugin
getOptimizerRules
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
StoragePlugin
getPhysicalScan
in interface StoragePlugin
userName
- User whom to impersonate when when reading the contents as part of Scan.selection
- The configured storage engine specific selection.options
- (optional) session optionsIOException
public AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, SessionOptionManager options, MetadataProviderManager metadataProviderManager) throws IOException
StoragePlugin
getPhysicalScan
in interface StoragePlugin
userName
- 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 providersIOException
public AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection) throws IOException
StoragePlugin
getPhysicalScan
in interface StoragePlugin
userName
- User whom to impersonate when when reading the contents as part of Scan.selection
- The configured storage engine specific selection.IOException
public AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns, SessionOptionManager options) throws IOException
StoragePlugin
getPhysicalScan
in interface StoragePlugin
userName
- 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 optionsIOException
public AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns, SessionOptionManager options, MetadataProviderManager metadataProviderManager) throws IOException
StoragePlugin
getPhysicalScan
in interface StoragePlugin
userName
- 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 providersIOException
public AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns) throws IOException
StoragePlugin
getPhysicalScan
in interface StoragePlugin
userName
- 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.IOException
public void start() throws IOException
StoragePlugin
start
in interface StoragePlugin
IOException
public void close() throws Exception
close
in interface AutoCloseable
Exception
public FormatPlugin getFormatPlugin(FormatPluginConfig config)
StoragePlugin
getFormatPlugin
in interface StoragePlugin
config
- format plugin configpublic String getName()
getName
in interface StoragePlugin
public DrillbitContext getContext()
Copyright © 1970 The Apache Software Foundation. All rights reserved.