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
-
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
ConstructorDescriptionClickhouseCatalogSchema
(String name, DataSource source, org.apache.calcite.sql.SqlDialect dialect, DrillJdbcConvention convention) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.schema.Schema
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.org.apache.calcite.schema.Table
Returns string describing schema type which shows where the schema came from.void
setHolder
(org.apache.calcite.schema.SchemaPlus plusOfThis) Methods inherited from class org.apache.drill.exec.store.AbstractSchema
appendToStatsTable, applyFunctionParameters, areTableNamesCaseSensitive, close, createNewTable, createNewTable, createStatsTable, createView, dropTable, dropView, getExpression, getFullSchemaName, getFunctionNames, getFunctionParameters, getFunctions, getName, getSchemaPath, getStatsTable, getSubPartitions, getSubSchema, getSubSchemaNames, getTableNamesAndTypes, getTablesByNames, getType, getTypeMap, getTypeNames, getUser, isMutable, modifyTable, needToImpersonateReadingData, showInInformationSchema, snapshot, toString
-
Constructor Details
-
ClickhouseCatalogSchema
public ClickhouseCatalogSchema(String name, DataSource source, org.apache.calcite.sql.SqlDialect dialect, DrillJdbcConvention convention)
-
-
Method Details
-
setHolder
public void setHolder(org.apache.calcite.schema.SchemaPlus plusOfThis) -
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
-
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 classAbstractSchema
- Returns:
- Return the default schema where tables are created or retrieved from.
-
getTable
- Specified by:
getTable
in interfaceorg.apache.calcite.schema.Schema
- Overrides:
getTable
in classAbstractSchema
-
getTableNames
- Specified by:
getTableNames
in interfaceorg.apache.calcite.schema.Schema
- Overrides:
getTableNames
in classAbstractSchema
-