public class ConfHelper extends Object
| Constructor and Description |
|---|
ConfHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
parseBoolean(org.apache.hadoop.conf.Configuration conf,
String propertyName,
boolean defaultValue) |
static boolean |
parseBoolean(String value,
boolean defaultValue)
Convert a string to a boolean.
|
public static boolean parseBoolean(String value, boolean defaultValue)
IllegalArgumentException - Thrown if value is not
null and doesn't match any of the accepted strings.public static boolean parseBoolean(org.apache.hadoop.conf.Configuration conf,
String propertyName,
boolean defaultValue)
Copyright © 2017. All rights reserved.