public class InfoSchemaStoragePlugin extends AbstractStoragePlugin
context
DEFAULT_WS_NAME
Constructor and Description |
---|
InfoSchemaStoragePlugin(DrillbitContext context) |
InfoSchemaStoragePlugin(InfoSchemaConfig config,
DrillbitContext context,
String name) |
Modifier and Type | Method and Description |
---|---|
StoragePluginConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig.
|
Set<StoragePluginOptimizerRule> |
getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext) |
InfoSchemaGroupScan |
getPhysicalScan(String userName,
JSONOptions selection,
List<SchemaPath> columns)
Get the physical scan operator for the particular GroupScan (read) node.
|
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, getFormatPlugin, getLogicalOptimizerRules, getName, getOptimizerRules, getOptimizerRules, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, start, supportsWrite
public InfoSchemaStoragePlugin(DrillbitContext context)
public InfoSchemaStoragePlugin(InfoSchemaConfig config, DrillbitContext context, String name)
public boolean supportsRead()
StoragePlugin
supportsRead
in interface StoragePlugin
supportsRead
in class AbstractStoragePlugin
public InfoSchemaGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns)
StoragePlugin
getPhysicalScan
in interface StoragePlugin
getPhysicalScan
in class AbstractStoragePlugin
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.public StoragePluginConfig getConfig()
StoragePlugin
public void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent)
SchemaFactory
schemaConfig
- Configuration for schema objects.parent
- Reference to parent schema.public Set<StoragePluginOptimizerRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext)
getPhysicalOptimizerRules
in class AbstractStoragePlugin
Copyright © 1970 The Apache Software Foundation. All rights reserved.