public class HiveStoragePlugin extends AbstractStoragePlugin
Modifier and Type | Field and Description |
---|---|
static String |
HIVE_MAPRDB_FORMAT_PLUGIN_NAME |
context
DEFAULT_WS_NAME
Constructor and Description |
---|
HiveStoragePlugin(HiveStoragePluginConfig config,
DrillbitContext context,
String name) |
Modifier and Type | Method and Description |
---|---|
HiveStoragePluginConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig.
|
FormatPlugin |
getFormatPlugin(FormatPluginConfig formatConfig)
Allows to get the format plugin for current storage plugin based on appropriate format plugin config usage.
|
org.apache.hadoop.hive.conf.HiveConf |
getHiveConf() |
Set<StoragePluginOptimizerRule> |
getLogicalOptimizerRules(OptimizerRulesContext optimizerContext) |
Set<StoragePluginOptimizerRule> |
getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext) |
HiveScan |
getPhysicalScan(String userName,
JSONOptions selection,
List<SchemaPath> columns)
Get the physical scan operator for the particular GroupScan (read) node.
|
HiveScan |
getPhysicalScan(String userName,
JSONOptions selection,
List<SchemaPath> columns,
SessionOptionManager options)
Get the physical scan operator for the particular GroupScan (read) node.
|
HiveScan |
getPhysicalScan(String userName,
JSONOptions selection,
SessionOptionManager options)
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.
|
close, getContext, getName, getOptimizerRules, getOptimizerRules, getPhysicalScan, getPhysicalScan, getPhysicalScan, start, supportsRead, supportsWrite
public static final String HIVE_MAPRDB_FORMAT_PLUGIN_NAME
public HiveStoragePlugin(HiveStoragePluginConfig config, DrillbitContext context, String name) throws ExecutionSetupException
ExecutionSetupException
public org.apache.hadoop.hive.conf.HiveConf getHiveConf()
public HiveStoragePluginConfig getConfig()
StoragePlugin
public HiveScan getPhysicalScan(String userName, JSONOptions selection, SessionOptionManager options) 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.options
- (optional) session optionsIOException
public HiveScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns) 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.columns
- (optional) The list of column names to scan from the data source.IOException
public HiveScan getPhysicalScan(String userName, JSONOptions selection, List<SchemaPath> columns, SessionOptionManager options) 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.columns
- (optional) The list of column names to scan from the data source.options
- (optional) session optionsIOException
public void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) throws IOException
SchemaFactory
schemaConfig
- Configuration for schema objects.parent
- Reference to parent schema.IOException
- in case of error during schema registrationpublic Set<StoragePluginOptimizerRule> getLogicalOptimizerRules(OptimizerRulesContext optimizerContext)
getLogicalOptimizerRules
in class AbstractStoragePlugin
public Set<StoragePluginOptimizerRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext)
getPhysicalOptimizerRules
in class AbstractStoragePlugin
public FormatPlugin getFormatPlugin(FormatPluginConfig formatConfig)
StoragePlugin
getFormatPlugin
in interface StoragePlugin
getFormatPlugin
in class AbstractStoragePlugin
formatConfig
- format plugin configCopyright © 1970 The Apache Software Foundation. All rights reserved.