public abstract class AbstractStoragePlugin extends Object implements StoragePlugin
logger| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStoragePlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<? extends org.apache.calcite.plan.RelOptRule> |
getLogicalOptimizerRules(OptimizerRulesContext optimizerContext)
Deprecated.
Marking for deprecation in next major version release. Use
#getPhysicalOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase) |
Set<? extends org.apache.calcite.plan.RelOptRule> |
getOptimizerRules(OptimizerRulesContext optimizerContext)
Deprecated.
Marking for deprecation in next major version release. Use
#getPhysicalOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase) |
Set<? extends org.apache.calcite.plan.RelOptRule> |
getOptimizerRules(OptimizerRulesContext optimizerContext,
PlannerPhase phase)
Note: 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
#getPhysicalOptimizerRules(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.
|
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, waitgetConfigregisterSchemaspublic boolean supportsRead()
StoragePluginsupportsRead in interface StoragePluginpublic boolean supportsWrite()
StoragePluginsupportsWrite in interface StoragePlugin@Deprecated public Set<? extends org.apache.calcite.plan.RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext)
#getPhysicalOptimizerRules(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)
#getPhysicalOptimizerRules(org.apache.drill.exec.ops.OptimizerRulesContext, org.apache.drill.exec.planner.PlannerPhase)@Deprecated public Set<? extends org.apache.calcite.plan.RelOptRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext)
#getPhysicalOptimizerRules(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) 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) 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 AutoCloseableExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.