public class ClickhouseCatalogSchema extends AbstractSchema
name, SCHEMA_SEPARATOR, schemaPath
Constructor and Description |
---|
ClickhouseCatalogSchema(String name,
DataSource source,
org.apache.calcite.sql.SqlDialect dialect,
DrillJdbcConvention convention) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.schema.Schema |
getDefaultSchema()
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 |
getTable(String name) |
Set<String> |
getTableNames() |
String |
getTypeName()
Returns string describing schema type which shows where the schema came from.
|
void |
setHolder(org.apache.calcite.schema.SchemaPlus plusOfThis) |
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, needToImpersonateReadingData, showInInformationSchema, snapshot, toString
public ClickhouseCatalogSchema(String name, DataSource source, org.apache.calcite.sql.SqlDialect dialect, DrillJdbcConvention convention)
public void setHolder(org.apache.calcite.schema.SchemaPlus plusOfThis)
public String getTypeName()
AbstractSchema
getTypeName
in class AbstractSchema
public org.apache.calcite.schema.Schema getDefaultSchema()
AbstractSchema
Default implementation returns itself.
Ex. "dfs" schema refers to the tables in "default" workspace when querying for tables in "dfs" schema.
getDefaultSchema
in class AbstractSchema
public org.apache.calcite.schema.Table getTable(String name)
getTable
in interface org.apache.calcite.schema.Schema
getTable
in class AbstractSchema
public Set<String> getTableNames()
getTableNames
in interface org.apache.calcite.schema.Schema
getTableNames
in class AbstractSchema
Copyright © 1970 The Apache Software Foundation. All rights reserved.