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

    Constructors
    Constructor
    Description
    CatalogSchemaTable(org.apache.flink.table.catalog.ContextResolvedTable contextResolvedTable, FlinkStatistic statistic, boolean isStreaming)
    Create a CatalogSchemaTable instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.flink.table.catalog.ContextResolvedTable
     
    org.apache.calcite.rel.type.RelDataType
    getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
     
    FlinkStatistic
     
     
     
    boolean
     
    boolean
     

    Methods inherited from class org.apache.calcite.schema.impl.AbstractTable

    getJdbcTableType, isRolledUp, rolledUpColumnValidInsideAgg, unwrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.calcite.schema.Table

    getJdbcTableType, isRolledUp, rolledUpColumnValidInsideAgg

    Methods 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 lookup
      statistic - Table statistics
      isStreaming - 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:
      getRowType in interface org.apache.calcite.schema.Table
    • getStatistic

      public FlinkStatistic getStatistic()
      Specified by:
      getStatistic in interface org.apache.calcite.schema.Table
      Overrides:
      getStatistic in class org.apache.calcite.schema.impl.AbstractTable
    • getSysStartFieldName

      public String getSysStartFieldName()
      Specified by:
      getSysStartFieldName in interface org.apache.calcite.schema.TemporalTable
    • getSysEndFieldName

      public String getSysEndFieldName()
      Specified by:
      getSysEndFieldName in interface org.apache.calcite.schema.TemporalTable