@Private
public abstract class ConfigurationUtils
extends java.lang.Object
| Constructor | Description |
|---|---|
ConfigurationUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
copy(org.apache.hadoop.conf.Configuration source,
org.apache.hadoop.conf.Configuration target) |
Copy configuration key/value pairs from one configuration to another if a property exists in the target, it gets
replaced.
|
static void |
injectDefaults(org.apache.hadoop.conf.Configuration source,
org.apache.hadoop.conf.Configuration target) |
Injects configuration key/value pairs from one configuration to another if the key does not exist in the target
configuration.
|
static void |
load(org.apache.hadoop.conf.Configuration conf,
java.io.InputStream is) |
Create a configuration from an InputStream.
|
static org.apache.hadoop.conf.Configuration |
resolve(org.apache.hadoop.conf.Configuration conf) |
Returns a new ConfigurationUtils instance with all inline values resolved.
|
public static void copy(org.apache.hadoop.conf.Configuration source,
org.apache.hadoop.conf.Configuration target)
source - source configuration.target - target configuration.public static void injectDefaults(org.apache.hadoop.conf.Configuration source,
org.apache.hadoop.conf.Configuration target)
source - source configuration.target - target configuration.public static org.apache.hadoop.conf.Configuration resolve(org.apache.hadoop.conf.Configuration conf)
public static void load(org.apache.hadoop.conf.Configuration conf,
java.io.InputStream is)
throws java.io.IOException
ERROR canibalized from Configuration.loadResource().
is - inputstream to read the configuration from.java.io.IOException - thrown if the configuration could not be read.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.