Class HiveDatabaseSchema
java.lang.Object
org.apache.drill.exec.store.AbstractSchema
org.apache.drill.exec.store.hive.schema.HiveDatabaseSchema
- All Implemented Interfaces:
AutoCloseable
,org.apache.calcite.schema.Schema
,SchemaPartitionExplorer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.schema.Schema
org.apache.calcite.schema.Schema.TableType
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.AbstractSchema
name, SCHEMA_SEPARATOR, schemaPath
-
Constructor Summary
ConstructorDescriptionHiveDatabaseSchema
(org.apache.drill.exec.store.hive.schema.HiveSchemaFactory.HiveSchema hiveSchema, String name, DrillHiveMetaStoreClient mClient, SchemaConfig schemaConfig) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates if table names in schema are case sensitive.org.apache.calcite.schema.Table
Collection<Map.Entry<String,
org.apache.calcite.schema.Schema.TableType>> Used byInfoSchemaRecordGenerator.Tables
for getting all table objects along with type for every requested schema.Returns string describing schema type which shows where the schema came from.Methods inherited from class org.apache.drill.exec.store.AbstractSchema
appendToStatsTable, applyFunctionParameters, close, createNewTable, createNewTable, createStatsTable, createView, dropTable, dropView, getDefaultSchema, getExpression, getFullSchemaName, getFunctionNames, getFunctionParameters, getFunctions, getName, getSchemaPath, getStatsTable, getSubPartitions, getSubSchema, getSubSchemaNames, getTablesByNames, getType, getTypeMap, getTypeNames, getUser, isMutable, modifyTable, needToImpersonateReadingData, showInInformationSchema, snapshot, toString
-
Constructor Details
-
HiveDatabaseSchema
public HiveDatabaseSchema(org.apache.drill.exec.store.hive.schema.HiveSchemaFactory.HiveSchema hiveSchema, String name, DrillHiveMetaStoreClient mClient, SchemaConfig schemaConfig)
-
-
Method Details
-
getTable
- Specified by:
getTable
in interfaceorg.apache.calcite.schema.Schema
- Overrides:
getTable
in classAbstractSchema
-
getTableNamesAndTypes
public Collection<Map.Entry<String,org.apache.calcite.schema.Schema.TableType>> getTableNamesAndTypes()Description copied from class:AbstractSchema
Used byInfoSchemaRecordGenerator.Tables
for getting all table objects along with type for every requested schema. It's desired for this method to work fast because it impacts SHOW TABLES query.- Overrides:
getTableNamesAndTypes
in classAbstractSchema
- Returns:
- collection of table names and types
-
getTableNames
- Specified by:
getTableNames
in interfaceorg.apache.calcite.schema.Schema
- Overrides:
getTableNames
in classAbstractSchema
-
getTypeName
Description copied from class:AbstractSchema
Returns string describing schema type which shows where the schema came from. Good practice here is to return json type name of storage plugin's config.- Specified by:
getTypeName
in classAbstractSchema
- Returns:
- schema type name
-
areTableNamesCaseSensitive
public boolean areTableNamesCaseSensitive()Description copied from class:AbstractSchema
Indicates if table names in schema are case sensitive. By default they are. If schema implementation claims its table names are case insensitive, it is responsible for making case insensitive look up by table name.- Overrides:
areTableNamesCaseSensitive
in classAbstractSchema
- Returns:
- true if table names are case sensitive
-