@Internal public final class ExecNodeConfig extends Object implements ReadableConfig
PlannerBase.getTableConfig()
with the ExecNodeBase.getPersistedConfig()
configuration. The persisted configuration of the ExecNode
which is deserialized from the JSON plan has precedence over the PlannerBase.getTableConfig()
.
This class is intended to contain additional context information for ExecNode
translation such as shouldSetUid()
or helper methods for accessing configuration such as
getStateRetentionTime()
.
Modifier and Type | Method and Description |
---|---|
<T> T |
get(ConfigOption<T> option)
Reads a value using the metadata included in
ConfigOption . |
<T> Optional<T> |
getOptional(ConfigOption<T> option)
Reads a value using the metadata included in
ConfigOption . |
long |
getStateRetentionTime() |
boolean |
isCompiled() |
static ExecNodeConfig |
ofNodeConfig(ReadableConfig nodeConfig,
boolean isCompiled) |
boolean |
shouldSetUid() |
public static ExecNodeConfig ofNodeConfig(ReadableConfig nodeConfig, boolean isCompiled)
public <T> T get(ConfigOption<T> option)
ReadableConfig
ConfigOption
. Returns the ConfigOption.defaultValue()
if value key not present in the configuration.get
in interface ReadableConfig
T
- type of the value to readoption
- metadata of the option to readConfigOption.defaultValue()
if not foundReadableConfig.getOptional(ConfigOption)
public <T> Optional<T> getOptional(ConfigOption<T> option)
ReadableConfig
ConfigOption
. In contrast to ReadableConfig.get(ConfigOption)
returns Optional.empty()
if value not present.getOptional
in interface ReadableConfig
T
- type of the value to readoption
- metadata of the option to readOptional.empty()
if not foundReadableConfig.get(ConfigOption)
public long getStateRetentionTime()
public boolean isCompiled()
ExecNode
translation happens as part of a plan compilation.public boolean shouldSetUid()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.