public class HBaseStoragePlugin extends AbstractStoragePlugin
contextDEFAULT_WS_NAME| Constructor and Description |
|---|
HBaseStoragePlugin(HBaseStoragePluginConfig storeConfig,
DrillbitContext context,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
HBaseStoragePluginConfig |
getConfig()
Method returns a Jackson serializable object that extends a StoragePluginConfig.
|
org.apache.hadoop.hbase.client.Connection |
getConnection() |
Set<StoragePluginOptimizerRule> |
getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext) |
HBaseGroupScan |
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.
|
getContext, getFormatPlugin, getLogicalOptimizerRules, getName, getOptimizerRules, getOptimizerRules, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, start, supportsWritepublic HBaseStoragePlugin(HBaseStoragePluginConfig storeConfig, DrillbitContext context, String name) throws IOException
IOExceptionpublic boolean supportsRead()
StoragePluginsupportsRead in interface StoragePluginsupportsRead in class AbstractStoragePluginpublic HBaseGroupScan 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 void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) throws IOException
SchemaFactoryschemaConfig - Configuration for schema objects.parent - Reference to parent schema.IOException - in case of error during schema registrationpublic HBaseStoragePluginConfig getConfig()
StoragePluginpublic Set<StoragePluginOptimizerRule> getPhysicalOptimizerRules(OptimizerRulesContext optimizerRulesContext)
getPhysicalOptimizerRules in class AbstractStoragePluginpublic void close()
throws Exception
close in interface AutoCloseableclose in class AbstractStoragePluginExceptionpublic org.apache.hadoop.hbase.client.Connection getConnection()
Copyright © 2021 The Apache Software Foundation. All rights reserved.