public interface StoragePlugin extends SchemaFactory, AutoCloseable
logger| Modifier and Type | Method and Description |
|---|---|
StoragePluginConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig
|
Set<? extends org.apache.calcite.plan.RelOptRule> |
getOptimizerRules(OptimizerRulesContext optimizerContext)
Deprecated.
|
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.
|
registerSchemascloseboolean supportsRead()
boolean supportsWrite()
@Deprecated Set<? extends org.apache.calcite.plan.RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext)
AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection) throws IOException
userName - User whom to impersonate when when reading the contents as part of Scan.selection - The configured storage engine specific selection.IOExceptionAbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns) throws IOException
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.IOExceptionStoragePluginConfig getConfig()
void start()
throws IOException
IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.