org.springframework.data.hadoop.configuration
Class JobConfUtils
java.lang.Object
org.springframework.data.hadoop.configuration.JobConfUtils
public abstract class JobConfUtils
- extends Object
Reusable utility class for common JobConf operations.
- Author:
- Thomas Risberg
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobConfUtils
public JobConfUtils()
createFrom
public static JobConf createFrom(Configuration original,
Properties properties)
- Creates a new
JobConf based on the given arguments.
- Parameters:
original - initial configuration to read from. May be null.properties - properties object to add to the newly created configuration. May be null.
- Returns:
- newly created configuration based on the input parameters.
merge
public static JobConf merge(Configuration one,
Configuration two)
- Creates a new
Configuration by merging the given configurations.
Ordering is important - the second configuration overriding values in the first.
- Parameters:
one - configuration to read from. May be null.two - configuration to read from. May be null.
- Returns:
- the result of merging the two configurations.