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
ConstructorsConstructorDescriptionClickhouseCatalogSchema(String name, DataSource source, org.apache.calcite.sql.SqlDialect dialect, DrillJdbcConvention convention) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.schema.SchemaThe 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.TableReturns string describing schema type which shows where the schema came from.voidsetHolder(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:AbstractSchemaReturns 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:
getTypeNamein classAbstractSchema- Returns:
- schema type name
-
getDefaultSchema
public org.apache.calcite.schema.Schema getDefaultSchema()Description copied from class:AbstractSchemaThe 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:
getDefaultSchemain classAbstractSchema- Returns:
- Return the default schema where tables are created or retrieved from.
-
getTable
- Specified by:
getTablein interfaceorg.apache.calcite.schema.Schema- Overrides:
getTablein classAbstractSchema
-
getTableNames
- Specified by:
getTableNamesin interfaceorg.apache.calcite.schema.Schema- Overrides:
getTableNamesin classAbstractSchema
-