Class SqlCatalogViewTable
java.lang.Object
org.apache.calcite.prepare.Prepare.AbstractPreparingTable
org.apache.flink.table.planner.plan.schema.FlinkPreparingTableBase
org.apache.flink.table.planner.plan.schema.ExpandingPreparingTable
org.apache.flink.table.planner.catalog.SqlCatalogViewTable
- All Implemented Interfaces:
org.apache.calcite.plan.RelOptTable,org.apache.calcite.prepare.Prepare.PreparingTable,org.apache.calcite.schema.Wrapper,org.apache.calcite.sql.validate.SqlValidatorTable
A bridge between a Flink's specific
CatalogView and a Calcite's RelOptTable. It implements parsing and conversion from sql string to
RelNode.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.plan.RelOptTable
org.apache.calcite.plan.RelOptTable.ToRelContext, org.apache.calcite.plan.RelOptTable.ViewExpander -
Field Summary
Fields inherited from class org.apache.flink.table.planner.plan.schema.FlinkPreparingTableBase
names, relOptSchema, rowType, statistic -
Constructor Summary
ConstructorsConstructorDescriptionSqlCatalogViewTable(org.apache.calcite.plan.RelOptSchema relOptSchema, org.apache.calcite.rel.type.RelDataType rowType, Iterable<String> names, FlinkStatistic statistic, org.apache.flink.table.catalog.CatalogView view, List<String> viewPath) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.rel.RelNodeconvertToRel(org.apache.calcite.plan.RelOptTable.ToRelContext context) Converts the table to aRelNode.Methods inherited from class org.apache.flink.table.planner.plan.schema.ExpandingPreparingTable
toRelMethods inherited from class org.apache.flink.table.planner.plan.schema.FlinkPreparingTableBase
columnHasDefaultValue, explainSourceAsString, extend, getAllowedAccess, getCollationList, getDistribution, getExpression, getKeys, getMonotonicity, getNames, getQualifiedName, getReferentialConstraints, getRelOptSchema, getRowCount, getRowType, getStatistic, isKey, isTemporal, supportsModality, uniqueKeysSet, unwrapMethods inherited from class org.apache.calcite.prepare.Prepare.AbstractPreparingTable
extend, getColumnStrategiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.sql.validate.SqlValidatorTable
tableMethods inherited from interface org.apache.calcite.schema.Wrapper
maybeUnwrap, unwrapOrThrow
-
Constructor Details
-
SqlCatalogViewTable
-
-
Method Details
-
convertToRel
public org.apache.calcite.rel.RelNode convertToRel(org.apache.calcite.plan.RelOptTable.ToRelContext context) Description copied from class:ExpandingPreparingTableConverts the table to aRelNode. Does not need to expand any nested scans of anExpandingPreparingTable. Those will be expanded recursively.- Specified by:
convertToRelin classExpandingPreparingTable- Returns:
- a relational tree
-