Class CatalogSchemaTable
java.lang.Object
org.apache.calcite.schema.impl.AbstractTable
org.apache.flink.table.planner.catalog.CatalogSchemaTable
- All Implemented Interfaces:
org.apache.calcite.schema.Table,org.apache.calcite.schema.TemporalTable,org.apache.calcite.schema.Wrapper
public class CatalogSchemaTable
extends org.apache.calcite.schema.impl.AbstractTable
implements org.apache.calcite.schema.TemporalTable
Represents a wrapper for
CatalogBaseTable in Schema.
This table would be converted to FlinkPreparingTableBase based on its internal source
type during sql-to-rel conversion.
See FlinkCalciteCatalogReader.getTable(List) for
details.
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogSchemaTable(org.apache.flink.table.catalog.ContextResolvedTable contextResolvedTable, FlinkStatistic statistic, boolean isStreaming) Create a CatalogSchemaTable instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.table.catalog.ContextResolvedTableorg.apache.calcite.rel.type.RelDataTypegetRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) FlinkStatisticbooleanbooleanMethods inherited from class org.apache.calcite.schema.impl.AbstractTable
getJdbcTableType, isRolledUp, rolledUpColumnValidInsideAgg, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.schema.Table
getJdbcTableType, isRolledUp, rolledUpColumnValidInsideAggMethods inherited from interface org.apache.calcite.schema.Wrapper
maybeUnwrap, unwrapOrThrow
-
Constructor Details
-
CatalogSchemaTable
public CatalogSchemaTable(org.apache.flink.table.catalog.ContextResolvedTable contextResolvedTable, FlinkStatistic statistic, boolean isStreaming) Create a CatalogSchemaTable instance.- Parameters:
contextResolvedTable- A result of catalog lookupstatistic- Table statisticsisStreaming- If the table is for streaming mode
-
-
Method Details
-
getContextResolvedTable
public org.apache.flink.table.catalog.ContextResolvedTable getContextResolvedTable() -
isTemporary
public boolean isTemporary() -
isStreamingMode
public boolean isStreamingMode() -
getRowType
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) - Specified by:
getRowTypein interfaceorg.apache.calcite.schema.Table
-
getStatistic
public FlinkStatistic getStatistic()- Specified by:
getStatisticin interfaceorg.apache.calcite.schema.Table- Overrides:
getStatisticin classorg.apache.calcite.schema.impl.AbstractTable
-
getSysStartFieldName
- Specified by:
getSysStartFieldNamein interfaceorg.apache.calcite.schema.TemporalTable
-
getSysEndFieldName
- Specified by:
getSysEndFieldNamein interfaceorg.apache.calcite.schema.TemporalTable
-