public class DruidStoragePlugin extends AbstractStoragePlugin
DEFAULT_WS_NAME
Constructor and Description |
---|
DruidStoragePlugin(DruidStoragePluginConfig pluginConfig,
DrillbitContext context,
String name) |
Modifier and Type | Method and Description |
---|---|
DruidAdminClient |
getAdminClient() |
DruidStoragePluginConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig.
|
DrillbitContext |
getContext() |
DruidQueryClient |
getDruidQueryClient() |
Set<StoragePluginOptimizerRule> |
getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext) |
DruidGroupScan |
getPhysicalScan(String userName,
JSONOptions selection)
Get the physical scan operator for the particular GroupScan (read) node.
|
ScanQueryBuilder |
getScanQueryBuilder() |
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.
|
boolean |
supportsWrite()
Indicates if Drill can write a table to this format (e.g.
|
close, getFormatPlugin, getLogicalOptimizerRules, getName, getOptimizerRules, getOptimizerRules, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, start
public DruidStoragePlugin(DruidStoragePluginConfig pluginConfig, DrillbitContext context, String name)
public DruidGroupScan getPhysicalScan(String userName, JSONOptions selection) throws IOException
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.IOException
public Set<StoragePluginOptimizerRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext)
getPhysicalOptimizerRules
in class AbstractStoragePlugin
public void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent)
SchemaFactory
schemaConfig
- Configuration for schema objects.parent
- Reference to parent schema.public boolean supportsRead()
StoragePlugin
supportsRead
in interface StoragePlugin
supportsRead
in class AbstractStoragePlugin
public boolean supportsWrite()
StoragePlugin
supportsWrite
in interface StoragePlugin
supportsWrite
in class AbstractStoragePlugin
public DruidStoragePluginConfig getConfig()
StoragePlugin
public DrillbitContext getContext()
getContext
in class AbstractStoragePlugin
public DruidAdminClient getAdminClient()
public DruidQueryClient getDruidQueryClient()
public ScanQueryBuilder getScanQueryBuilder()
Copyright © 1970 The Apache Software Foundation. All rights reserved.