public final class CatalogSourceTable extends FlinkPreparingTableBase
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.
names, relOptSchema, rowType, statistic| 构造器和说明 |
|---|
CatalogSourceTable(org.apache.calcite.plan.RelOptSchema relOptSchema,
List<String> names,
org.apache.calcite.rel.type.RelDataType rowType,
CatalogSchemaTable schemaTable) |
| 限定符和类型 | 方法和说明 |
|---|---|
static CatalogSourceTable |
createAnonymous(FlinkRelBuilder relBuilder,
org.apache.flink.table.catalog.ContextResolvedTable contextResolvedTable,
boolean isBatchMode)
Create a
CatalogSourceTable from an anonymous ContextResolvedTable. |
org.apache.flink.table.catalog.CatalogTable |
getCatalogTable() |
org.apache.calcite.rel.RelNode |
toRel(org.apache.calcite.plan.RelOptTable.ToRelContext toRelContext) |
columnHasDefaultValue, explainSourceAsString, extend, getAllowedAccess, getCollationList, getDistribution, getExpression, getKeys, getMonotonicity, getNames, getQualifiedName, getReferentialConstraints, getRelOptSchema, getRowCount, getRowType, getStatistic, isKey, isTemporal, supportsModality, uniqueKeysSet, unwrappublic CatalogSourceTable(org.apache.calcite.plan.RelOptSchema relOptSchema,
List<String> names,
org.apache.calcite.rel.type.RelDataType rowType,
CatalogSchemaTable schemaTable)
public static CatalogSourceTable createAnonymous(FlinkRelBuilder relBuilder, org.apache.flink.table.catalog.ContextResolvedTable contextResolvedTable, boolean isBatchMode)
CatalogSourceTable from an anonymous ContextResolvedTable. This is
required to manually create a preparing table skipping the calcite catalog resolution.public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext toRelContext)
toRel 在接口中 org.apache.calcite.plan.RelOptTabletoRel 在类中 FlinkPreparingTableBasepublic org.apache.flink.table.catalog.CatalogTable getCatalogTable()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.