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,
ContextResolvedTable contextResolvedTable,
boolean isBatchMode)
Create a
CatalogSourceTable from an anonymous ContextResolvedTable . |
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, unwrap
public 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, 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.RelOptTable
toRel
in class FlinkPreparingTableBase
public CatalogTable getCatalogTable()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.