public class ElasticsearchStoragePlugin extends AbstractStoragePlugin
context
DEFAULT_WS_NAME
Constructor and Description |
---|
ElasticsearchStoragePlugin(ElasticsearchStorageConfig config,
DrillbitContext context,
String name) |
Modifier and Type | Method and Description |
---|---|
ElasticsearchStorageConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig.
|
Set<? extends org.apache.calcite.plan.RelOptRule> |
getOptimizerRules(OptimizerRulesContext optimizerContext,
PlannerPhase phase)
TODO: Move this method to
StoragePlugin interface in next major version release. |
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, getPhysicalScan, start, supportsWrite
public ElasticsearchStoragePlugin(ElasticsearchStorageConfig config, DrillbitContext context, String name)
public void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) throws com.fasterxml.jackson.core.JsonProcessingException
SchemaFactory
schemaConfig
- Configuration for schema objects.parent
- Reference to parent schema.com.fasterxml.jackson.core.JsonProcessingException
public ElasticsearchStorageConfig getConfig()
StoragePlugin
public boolean supportsRead()
StoragePlugin
supportsRead
in interface StoragePlugin
supportsRead
in class AbstractStoragePlugin
public Set<? extends org.apache.calcite.plan.RelOptRule> getOptimizerRules(OptimizerRulesContext optimizerContext, PlannerPhase phase)
AbstractStoragePlugin
StoragePlugin
interface in next major version release.getOptimizerRules
in class AbstractStoragePlugin
Copyright © 1970 The Apache Software Foundation. All rights reserved.