Class ClickhouseCatalogSchema

java.lang.Object
org.apache.drill.exec.store.AbstractSchema
org.apache.drill.exec.store.jdbc.clickhouse.ClickhouseCatalogSchema
All Implemented Interfaces:
AutoCloseable, org.apache.calcite.schema.Schema, SchemaPartitionExplorer

public class ClickhouseCatalogSchema extends AbstractSchema
  • Constructor Details

  • Method Details

    • setHolder

      public void setHolder(org.apache.calcite.schema.SchemaPlus plusOfThis)
    • 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
    • getDefaultSchema

      public org.apache.calcite.schema.Schema getDefaultSchema()
      Description copied from class: AbstractSchema
      The schema can be a top level schema which doesn't have its own tables, but refers to one of the default sub schemas for table look up.

      Default implementation returns itself.

      Ex. "dfs" schema refers to the tables in "default" workspace when querying for tables in "dfs" schema.

      Overrides:
      getDefaultSchema in class AbstractSchema
      Returns:
      Return the default schema where tables are created or retrieved from.
    • getTable

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

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