Class TableConfigUtils

java.lang.Object
org.apache.flink.table.planner.utils.TableConfigUtils

public class TableConfigUtils extends Object
Utility class for TableConfig related helper functions.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.flink.table.api.config.AggregatePhaseStrategy
    getAggPhaseStrategy(org.apache.flink.configuration.ReadableConfig tableConfig)
    Returns the aggregate phase strategy configuration.
    static CalciteConfig
    getCalciteConfig(org.apache.flink.table.api.TableConfig tableConfig)
    Returns CalciteConfig wraps in the given TableConfig.
    static ZoneId
    getLocalTimeZone(org.apache.flink.configuration.ReadableConfig tableConfig)
    Similar to TableConfig.getLocalTimeZone() but extracting it from a generic ReadableConfig.
    static long
    getMaxIdleStateRetentionTime(org.apache.flink.configuration.ReadableConfig tableConfig)
    Deprecated.
    static boolean
    isOperatorDisabled(org.apache.flink.table.api.TableConfig tableConfig, OperatorType operatorType)
    Returns whether the given operator type is disabled.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isOperatorDisabled

      public static boolean isOperatorDisabled(org.apache.flink.table.api.TableConfig tableConfig, OperatorType operatorType)
      Returns whether the given operator type is disabled.
      Parameters:
      tableConfig - TableConfig object
      operatorType - operator type to check
      Returns:
      true if the given operator is disabled.
    • getAggPhaseStrategy

      public static org.apache.flink.table.api.config.AggregatePhaseStrategy getAggPhaseStrategy(org.apache.flink.configuration.ReadableConfig tableConfig)
      Returns the aggregate phase strategy configuration.
      Parameters:
      tableConfig - TableConfig object
      Returns:
      the aggregate phase strategy
    • getCalciteConfig

      public static CalciteConfig getCalciteConfig(org.apache.flink.table.api.TableConfig tableConfig)
      Returns CalciteConfig wraps in the given TableConfig.
      Parameters:
      tableConfig - TableConfig object
      Returns:
      wrapped CalciteConfig.
    • getLocalTimeZone

      public static ZoneId getLocalTimeZone(org.apache.flink.configuration.ReadableConfig tableConfig)
      Similar to TableConfig.getLocalTimeZone() but extracting it from a generic ReadableConfig.
      See Also:
      • TableConfig.getLocalTimeZone()
    • getMaxIdleStateRetentionTime

      @Deprecated public static long getMaxIdleStateRetentionTime(org.apache.flink.configuration.ReadableConfig tableConfig)
      Deprecated.