public class MockStorageEngine extends AbstractStoragePlugin
| Constructor and Description |
|---|
MockStorageEngine(MockStorageEngineConfig configuration,
DrillbitContext context,
String name) |
| Modifier and Type | Method and Description |
|---|---|
StoragePluginConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig
|
AbstractGroupScan |
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, getLogicalOptimizerRules, getOptimizerRules, getOptimizerRules, getPhysicalOptimizerRules, getPhysicalScan, start, supportsWritepublic MockStorageEngine(MockStorageEngineConfig configuration, DrillbitContext context, String name)
public AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns) throws IOException
StoragePlugingetPhysicalScan in interface StoragePlugingetPhysicalScan in class AbstractStoragePluginuserName - 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 registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) throws IOException
SchemaFactoryschemaConfig - Configuration for schema objects.parent - Reference to parent schema.IOExceptionpublic StoragePluginConfig getConfig()
StoragePluginpublic boolean supportsRead()
StoragePluginsupportsRead in interface StoragePluginsupportsRead in class AbstractStoragePluginCopyright © 2017 The Apache Software Foundation. All rights reserved.