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

public class HiveDatabaseSchema extends AbstractSchema
  • Constructor Details

  • Method Details

    • getTable

      public org.apache.calcite.schema.Table getTable(String tableName)
      Specified by:
      getTable in interface org.apache.calcite.schema.Schema
      Overrides:
      getTable in class AbstractSchema
    • getTableNamesAndTypes

      public Collection<Map.Entry<String,org.apache.calcite.schema.Schema.TableType>> getTableNamesAndTypes()
      Description copied from class: AbstractSchema
      Used by InfoSchemaRecordGenerator.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 class AbstractSchema
      Returns:
      collection of table names and types
    • getTableNames

      public Set<String> getTableNames()
      Specified by:
      getTableNames in interface org.apache.calcite.schema.Schema
      Overrides:
      getTableNames in class AbstractSchema
    • getTypeName

      public String 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 class AbstractSchema
      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 class AbstractSchema
      Returns:
      true if table names are case sensitive