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| Constructor and Description |
|---|
CatalogSourceTable(org.apache.calcite.plan.RelOptSchema relOptSchema,
List<String> names,
org.apache.calcite.rel.type.RelDataType rowType,
CatalogSchemaTable schemaTable) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface org.apache.calcite.plan.RelOptTabletoRel in class FlinkPreparingTableBasepublic org.apache.flink.table.catalog.CatalogTable getCatalogTable()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.