@Internal public class CatalogManagerCalciteSchema extends FlinkSchema
CatalogManager
and the Schema
. 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 and Description |
---|
CatalogManagerCalciteSchema(CatalogManager catalogManager,
boolean isStreamingMode) |
Modifier and Type | Method and Description |
---|---|
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() |
getFunctionNames, getFunctions, getType, getTypeNames, snapshot
public CatalogManagerCalciteSchema(CatalogManager catalogManager, boolean isStreamingMode)
public org.apache.calcite.schema.Table getTable(String name)
public org.apache.calcite.schema.Schema getSubSchema(String name)
public org.apache.calcite.linq4j.tree.Expression getExpression(org.apache.calcite.schema.SchemaPlus parentSchema, String name)
public boolean isMutable()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.