public class ConfigUtils extends Object
Constructor and Description |
---|
ConfigUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf,
String newName,
String oldName,
boolean defaultValue)
Fetches a property using both a deprecated name and the new name.
|
static String |
getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf,
String newName,
String oldName,
String defaultValue)
Fetches a property using both a deprecated name and the new name.
|
public ConfigUtils()
public static String getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf, String newName, String oldName, String defaultValue)
conf
- configuration object.newName
- new property name.oldName
- deprecated property name.defaultValue
- default value.public static boolean getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf, String newName, String oldName, boolean defaultValue)
conf
- configuration object.newName
- new property name.oldName
- deprecated property name.defaultValue
- default value.Copyright © 2015 Apache Software Foundation. All Rights Reserved.