Class TableConfigUtils
java.lang.Object
org.apache.flink.table.planner.utils.TableConfigUtils
Utility class for
TableConfig related helper functions.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.flink.table.api.config.AggregatePhaseStrategygetAggPhaseStrategy(org.apache.flink.configuration.ReadableConfig tableConfig) Returns the aggregate phase strategy configuration.static CalciteConfiggetCalciteConfig(org.apache.flink.table.api.TableConfig tableConfig) ReturnsCalciteConfigwraps in the given TableConfig.static ZoneIdgetLocalTimeZone(org.apache.flink.configuration.ReadableConfig tableConfig) Similar toTableConfig.getLocalTimeZone()but extracting it from a genericReadableConfig.static longgetMaxIdleStateRetentionTime(org.apache.flink.configuration.ReadableConfig tableConfig) Deprecated.static booleanisOperatorDisabled(org.apache.flink.table.api.TableConfig tableConfig, OperatorType operatorType) Returns whether the given operator type is disabled.
-
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 objectoperatorType- 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) ReturnsCalciteConfigwraps in the given TableConfig.- Parameters:
tableConfig- TableConfig object- Returns:
- wrapped CalciteConfig.
-
getLocalTimeZone
Similar toTableConfig.getLocalTimeZone()but extracting it from a genericReadableConfig.- See Also:
-
TableConfig.getLocalTimeZone()
-
getMaxIdleStateRetentionTime
@Deprecated public static long getMaxIdleStateRetentionTime(org.apache.flink.configuration.ReadableConfig tableConfig) Deprecated.
-