Class QueryOperationCatalogViewTable
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.QueryOperationCatalogViewTable
- 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
QueryOperationCatalogView and a Calcite's RelOptTable. It implements the conversion from QueryOperation 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.rel.RelNodeconvertToRel(org.apache.calcite.plan.RelOptTable.ToRelContext context) Converts the table to aRelNode.create(org.apache.calcite.plan.RelOptSchema schema, List<String> names, org.apache.calcite.rel.type.RelDataType rowType, org.apache.flink.table.catalog.QueryOperationCatalogView view) 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, 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
-
Method Details
-
create
public static QueryOperationCatalogViewTable create(org.apache.calcite.plan.RelOptSchema schema, List<String> names, org.apache.calcite.rel.type.RelDataType rowType, org.apache.flink.table.catalog.QueryOperationCatalogView view) -
getQualifiedName
- Specified by:
getQualifiedNamein interfaceorg.apache.calcite.plan.RelOptTable- Specified by:
getQualifiedNamein interfaceorg.apache.calcite.sql.validate.SqlValidatorTable- Overrides:
getQualifiedNamein classFlinkPreparingTableBase
-
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
-