Class ExecNodeConfig
- java.lang.Object
-
- org.apache.flink.table.planner.plan.nodes.exec.ExecNodeConfig
-
- All Implemented Interfaces:
ReadableConfig
@Internal public final class ExecNodeConfig extends Object implements ReadableConfig
Configuration view which is used combine thePlannerBase.getTableConfig()
with theExecNodeBase.getPersistedConfig()
configuration. The persisted configuration of theExecNode
which is deserialized from the JSON plan has precedence over thePlannerBase.getTableConfig()
.This class is intended to contain additional context information for
ExecNode
translation such asshouldSetUid()
or helper methods for accessing configuration such asgetStateRetentionTime()
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(ConfigOption<T> option)
Reads a value using the metadata included inConfigOption
.<T> Optional<T>
getOptional(ConfigOption<T> option)
Reads a value using the metadata included inConfigOption
.long
getStateRetentionTime()
boolean
isCompiled()
static ExecNodeConfig
ofNodeConfig(ReadableConfig nodeConfig, boolean isCompiled)
static ExecNodeConfig
ofTableConfig(TableConfig tableConfig, boolean isCompiled)
boolean
shouldSetUid()
Map<String,String>
toMap()
Converts the configuration items into a map of string key-value pairs.
-
-
-
Method Detail
-
ofNodeConfig
public static ExecNodeConfig ofNodeConfig(ReadableConfig nodeConfig, boolean isCompiled)
-
ofTableConfig
@VisibleForTesting public static ExecNodeConfig ofTableConfig(TableConfig tableConfig, boolean isCompiled)
-
get
public <T> T get(ConfigOption<T> option)
Description copied from interface:ReadableConfig
Reads a value using the metadata included inConfigOption
. Returns theConfigOption.defaultValue()
if value key not present in the configuration.- Specified by:
get
in interfaceReadableConfig
- Type Parameters:
T
- type of the value to read- Parameters:
option
- metadata of the option to read- Returns:
- read value or
ConfigOption.defaultValue()
if not found - See Also:
ReadableConfig.getOptional(ConfigOption)
-
getOptional
public <T> Optional<T> getOptional(ConfigOption<T> option)
Description copied from interface:ReadableConfig
Reads a value using the metadata included inConfigOption
. In contrast toReadableConfig.get(ConfigOption)
returnsOptional.empty()
if value not present.- Specified by:
getOptional
in interfaceReadableConfig
- Type Parameters:
T
- type of the value to read- Parameters:
option
- metadata of the option to read- Returns:
- read value or
Optional.empty()
if not found - See Also:
ReadableConfig.get(ConfigOption)
-
toMap
@Internal public Map<String,String> toMap()
Description copied from interface:ReadableConfig
Converts the configuration items into a map of string key-value pairs.- Specified by:
toMap
in interfaceReadableConfig
- Returns:
- a map containing the configuration properties, where the keys are strings and the values are the corresponding configuration values in string format.
-
getStateRetentionTime
public long getStateRetentionTime()
- Returns:
- The duration until state which was not updated will be retained.
-
isCompiled
public boolean isCompiled()
- Returns:
- Whether the
ExecNode
translation happens as part of a plan compilation.
-
shouldSetUid
public boolean shouldSetUid()
- Returns:
- Whether transformations should set a UID.
-
-