Package org.apache.flink.configuration
Class UnmodifiableConfiguration
- java.lang.Object
-
- org.apache.flink.api.common.ExecutionConfig.GlobalJobParameters
-
- org.apache.flink.configuration.Configuration
-
- org.apache.flink.configuration.UnmodifiableConfiguration
-
- All Implemented Interfaces:
Serializable,Cloneable,ReadableConfig,WritableConfig,IOReadableWritable
@Public public class UnmodifiableConfiguration extends Configuration
Unmodifiable version of the Configuration class.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.configuration.Configuration
confData
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableConfiguration(Configuration config)Creates a new UnmodifiableConfiguration, which holds a copy of the given configuration that cannot be altered.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll(Configuration other)voidaddAll(Configuration other, String prefix)Adds all entries from the given configuration into this configuration.voidaddAllToProperties(Properties props)Adds all entries in thisConfigurationto the givenProperties.<T> booleanremoveConfig(ConfigOption<T> configOption)Removes given config option from the configuration.
-
-
-
Constructor Detail
-
UnmodifiableConfiguration
public UnmodifiableConfiguration(Configuration config)
Creates a new UnmodifiableConfiguration, which holds a copy of the given configuration that cannot be altered.- Parameters:
config- The configuration with the original contents.
-
-
Method Detail
-
addAllToProperties
public void addAllToProperties(Properties props)
Description copied from class:ConfigurationAdds all entries in thisConfigurationto the givenProperties.- Overrides:
addAllToPropertiesin classConfiguration
-
addAll
public final void addAll(Configuration other)
- Overrides:
addAllin classConfiguration
-
addAll
public final void addAll(Configuration other, String prefix)
Description copied from class:ConfigurationAdds all entries from the given configuration into this configuration. The keys are prepended with the given prefix.- Overrides:
addAllin classConfiguration- Parameters:
other- The configuration whose entries are added to this configuration.prefix- The prefix to prepend.
-
removeConfig
public <T> boolean removeConfig(ConfigOption<T> configOption)
Description copied from class:ConfigurationRemoves given config option from the configuration.- Overrides:
removeConfigin classConfiguration- Type Parameters:
T- Type of the config option- Parameters:
configOption- config option to remove- Returns:
- true is config has been removed, false otherwise
-
-