Class HiveSchemaFactory
java.lang.Object
org.apache.drill.exec.store.AbstractSchemaFactory
org.apache.drill.exec.store.hive.schema.HiveSchemaFactory
- All Implemented Interfaces:
SchemaFactory
-
Field Summary
Fields inherited from interface org.apache.drill.exec.store.SchemaFactory
DEFAULT_WS_NAME
-
Constructor Summary
ConstructorDescriptionHiveSchemaFactory
(HiveStoragePlugin plugin, String name, org.apache.hadoop.hive.conf.HiveConf hiveConf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this schema factory in preparation for retrying.void
registerSchemas
(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) Register the schemas provided by this SchemaFactory implementation under the given parent schema.Methods inherited from class org.apache.drill.exec.store.AbstractSchemaFactory
getName
-
Constructor Details
-
HiveSchemaFactory
public HiveSchemaFactory(HiveStoragePlugin plugin, String name, org.apache.hadoop.hive.conf.HiveConf hiveConf) throws ExecutionSetupException - Throws:
ExecutionSetupException
-
-
Method Details
-
close
public void close()Close this schema factory in preparation for retrying. Attempt to close connections, but just ignore any errors. -
registerSchemas
public void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) throws IOException Description copied from interface:SchemaFactory
Register the schemas provided by this SchemaFactory implementation under the given parent schema.- Parameters:
schemaConfig
- Configuration for schema objects.parent
- Reference to parent schema.- Throws:
IOException
- in case of error during schema registration
-