public class HiveDatabaseSchema extends AbstractSchema
name, SCHEMA_SEPARATOR, schemaPath| Constructor and Description |
|---|
HiveDatabaseSchema(org.apache.drill.exec.store.hive.schema.HiveSchemaFactory.HiveSchema hiveSchema,
String name,
DrillHiveMetaStoreClient mClient,
SchemaConfig schemaConfig) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areTableNamesCaseSensitive()
Indicates if table names in schema are case sensitive.
|
org.apache.calcite.schema.Table |
getTable(String tableName) |
Set<String> |
getTableNames() |
Collection<Map.Entry<String,org.apache.calcite.schema.Schema.TableType>> |
getTableNamesAndTypes()
Used by
InfoSchemaRecordGenerator.Tables
for getting all table objects along with type for every requested schema. |
String |
getTypeName()
Returns string describing schema type which shows where the schema came from.
|
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, isMutable, showInInformationSchema, snapshot, toStringpublic HiveDatabaseSchema(org.apache.drill.exec.store.hive.schema.HiveSchemaFactory.HiveSchema hiveSchema,
String name,
DrillHiveMetaStoreClient mClient,
SchemaConfig schemaConfig)
public org.apache.calcite.schema.Table getTable(String tableName)
getTable in interface org.apache.calcite.schema.SchemagetTable in class AbstractSchemapublic Collection<Map.Entry<String,org.apache.calcite.schema.Schema.TableType>> getTableNamesAndTypes()
AbstractSchemaInfoSchemaRecordGenerator.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.getTableNamesAndTypes in class AbstractSchemapublic Set<String> getTableNames()
getTableNames in interface org.apache.calcite.schema.SchemagetTableNames in class AbstractSchemapublic String getTypeName()
AbstractSchemagetTypeName in class AbstractSchemapublic boolean areTableNamesCaseSensitive()
AbstractSchemaareTableNamesCaseSensitive in class AbstractSchemaCopyright © 2021 The Apache Software Foundation. All rights reserved.