public class SplunkStoragePlugin extends AbstractStoragePlugin
contextDEFAULT_WS_NAME| Constructor and Description |
|---|
SplunkStoragePlugin(SplunkPluginConfig configuration,
DrillbitContext context,
String name) |
| Modifier and Type | Method and Description |
|---|---|
SplunkPluginConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig.
|
Set<? extends org.apache.calcite.plan.RelOptRule> |
getOptimizerRules(OptimizerRulesContext optimizerContext,
PlannerPhase phase)
Note: Move this method to
StoragePlugin interface in next major version release. |
AbstractGroupScan |
getPhysicalScan(String userName,
JSONOptions selection)
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, getPhysicalOptimizerRules, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, start, supportsWritepublic SplunkStoragePlugin(SplunkPluginConfig configuration, DrillbitContext context, String name)
public SplunkPluginConfig getConfig()
StoragePluginpublic boolean supportsRead()
StoragePluginsupportsRead in interface StoragePluginsupportsRead in class AbstractStoragePluginpublic void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent)
SchemaFactoryschemaConfig - Configuration for schema objects.parent - Reference to parent schema.public AbstractGroupScan getPhysicalScan(String userName, JSONOptions selection) 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.IOExceptionpublic Set<? extends org.apache.calcite.plan.RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext, PlannerPhase phase)
AbstractStoragePluginStoragePlugin interface in next major version release.getOptimizerRules in class AbstractStoragePluginCopyright © 2021 The Apache Software Foundation. All rights reserved.