Class CatalogManagerCalciteSchema
- java.lang.Object
-
- org.apache.flink.table.planner.catalog.FlinkSchema
-
- org.apache.flink.table.planner.catalog.CatalogManagerCalciteSchema
-
- All Implemented Interfaces:
org.apache.calcite.schema.Schema
@Internal public class CatalogManagerCalciteSchema extends FlinkSchema
Bridge between theCatalogManager
and theSchema
. This way we can query Flink's specific catalogs from Calcite.The mapping for
Catalog
s is modeled as a strict two-level reference structure for Flink in Calcite, the full path of objects is of format [catalog_name].[db_name].[meta-object_name].
-
-
Constructor Summary
Constructors Constructor Description CatalogManagerCalciteSchema(CatalogManager catalogManager, boolean isStreamingMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlinkSchema
copy()
org.apache.calcite.linq4j.tree.Expression
getExpression(org.apache.calcite.schema.SchemaPlus parentSchema, String name)
org.apache.calcite.schema.Schema
getSubSchema(String name)
Set<String>
getSubSchemaNames()
org.apache.calcite.schema.Table
getTable(String name)
Set<String>
getTableNames()
boolean
isMutable()
-
Methods inherited from class org.apache.flink.table.planner.catalog.FlinkSchema
getFunctionNames, getFunctions, getSchemaVersion, getType, getTypeNames, snapshot
-
-
-
-
Constructor Detail
-
CatalogManagerCalciteSchema
public CatalogManagerCalciteSchema(CatalogManager catalogManager, boolean isStreamingMode)
-
-
Method Detail
-
getTable
public org.apache.calcite.schema.Table getTable(String name)
-
getSubSchema
public org.apache.calcite.schema.Schema getSubSchema(String name)
-
getExpression
public org.apache.calcite.linq4j.tree.Expression getExpression(org.apache.calcite.schema.SchemaPlus parentSchema, String name)
-
isMutable
public boolean isMutable()
-
copy
public FlinkSchema copy()
- Specified by:
copy
in classFlinkSchema
-
-