Class CatalogSourceTable
java.lang.Object
org.apache.calcite.prepare.Prepare.AbstractPreparingTable
org.apache.flink.table.planner.plan.schema.FlinkPreparingTableBase
org.apache.flink.table.planner.plan.schema.CatalogSourceTable
- 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
FlinkPreparingTableBase implementation which defines the interfaces required to
translate the Calcite RelOptTable to the Flink specific TableSourceTable.
This table is only used to translate the CatalogTable into TableSourceTable
during the last phase of the SQL-to-rel conversion, it is not necessary anymore once the SQL node
was converted to a relational expression.
-
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
ConstructorsConstructorDescriptionCatalogSourceTable(org.apache.calcite.plan.RelOptSchema relOptSchema, List<String> names, org.apache.calcite.rel.type.RelDataType rowType, CatalogSchemaTable schemaTable) -
Method Summary
Modifier and TypeMethodDescriptionstatic CatalogSourceTablecreateAnonymous(FlinkRelBuilder relBuilder, org.apache.flink.table.catalog.ContextResolvedTable contextResolvedTable, boolean isBatchMode) Create aCatalogSourceTablefrom an anonymousContextResolvedTable.org.apache.flink.table.catalog.CatalogTableorg.apache.calcite.rel.RelNodetoRel(org.apache.calcite.plan.RelOptTable.ToRelContext toRelContext) Methods 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
-
CatalogSourceTable
public CatalogSourceTable(org.apache.calcite.plan.RelOptSchema relOptSchema, List<String> names, org.apache.calcite.rel.type.RelDataType rowType, CatalogSchemaTable schemaTable)
-
-
Method Details
-
createAnonymous
public static CatalogSourceTable createAnonymous(FlinkRelBuilder relBuilder, org.apache.flink.table.catalog.ContextResolvedTable contextResolvedTable, boolean isBatchMode) Create aCatalogSourceTablefrom an anonymousContextResolvedTable. This is required to manually create a preparing table skipping the calcite catalog resolution. -
toRel
public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext toRelContext) - Specified by:
toRelin interfaceorg.apache.calcite.plan.RelOptTable- Overrides:
toRelin classFlinkPreparingTableBase
-
getCatalogTable
public org.apache.flink.table.catalog.CatalogTable getCatalogTable()
-