| Constructor and Description |
|---|
ImmutableConfiguration(org.apache.hadoop.conf.Configuration encapsulated) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDefaultResource(String name) |
void |
addResource(InputStream in) |
void |
addResource(org.apache.hadoop.fs.Path file) |
void |
addResource(String name) |
void |
addResource(URL url) |
void |
clear() |
static void |
dumpConfiguration(org.apache.hadoop.conf.Configuration config,
Writer out) |
String |
get(String name) |
String |
get(String name,
String defaultValue) |
boolean |
getBoolean(String name,
boolean defaultValue) |
Class<?> |
getClass(String name,
Class<?> defaultValue) |
<U> Class<? extends U> |
getClass(String name,
Class<? extends U> defaultValue,
Class<U> xface) |
Class<?> |
getClassByName(String name) |
Class<?>[] |
getClasses(String name,
Class<?>... defaultValue) |
ClassLoader |
getClassLoader() |
InputStream |
getConfResourceAsInputStream(String name) |
Reader |
getConfResourceAsReader(String name) |
<T extends Enum<T>> |
getEnum(String name,
T defaultValue) |
File |
getFile(String dirsProp,
String path) |
float |
getFloat(String name,
float defaultValue) |
<U> List<U> |
getInstances(String name,
Class<U> xface) |
int |
getInt(String name,
int defaultValue) |
org.apache.hadoop.fs.Path |
getLocalPath(String dirsProp,
String path) |
long |
getLong(String name,
long defaultValue) |
org.apache.hadoop.conf.Configuration.IntegerRanges |
getRange(String name,
String defaultValue) |
String |
getRaw(String name) |
URL |
getResource(String name) |
Collection<String> |
getStringCollection(String name) |
String[] |
getStrings(String name) |
String[] |
getStrings(String name,
String... defaultValue) |
Map<String,String> |
getValByRegex(String regex) |
Iterator<Map.Entry<String,String>> |
iterator() |
static void |
main(String[] args) |
void |
readFields(DataInput in) |
void |
reloadConfiguration() |
void |
set(String name,
String value) |
void |
setBoolean(String name,
boolean value) |
void |
setBooleanIfUnset(String name,
boolean value) |
void |
setClass(String name,
Class<?> theClass,
Class<?> xface) |
void |
setClassLoader(ClassLoader classLoader) |
<T extends Enum<T>> |
setEnum(String name,
T value) |
void |
setFloat(String name,
float value) |
void |
setIfUnset(String name,
String value) |
void |
setInt(String name,
int value) |
void |
setLong(String name,
long value) |
void |
setQuietMode(boolean quietmode) |
void |
setStrings(String name,
String... values) |
int |
size() |
String |
toString() |
void |
unset(String name) |
void |
write(DataOutput out) |
void |
writeXml(OutputStream out) |
void |
writeXml(Writer out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ImmutableConfiguration(org.apache.hadoop.conf.Configuration encapsulated)
public static void addDefaultResource(String name)
public void addResource(String name)
addResource in class org.apache.hadoop.conf.Configurationpublic void addResource(URL url)
addResource in class org.apache.hadoop.conf.Configurationpublic void addResource(org.apache.hadoop.fs.Path file)
addResource in class org.apache.hadoop.conf.Configurationpublic void addResource(InputStream in)
addResource in class org.apache.hadoop.conf.Configurationpublic void reloadConfiguration()
reloadConfiguration in class org.apache.hadoop.conf.Configurationpublic String getRaw(String name)
getRaw in class org.apache.hadoop.conf.Configurationpublic void set(String name, String value)
set in class org.apache.hadoop.conf.Configurationpublic void unset(String name)
unset in class org.apache.hadoop.conf.Configurationpublic void setIfUnset(String name, String value)
setIfUnset in class org.apache.hadoop.conf.Configurationpublic String get(String name, String defaultValue)
get in class org.apache.hadoop.conf.Configurationpublic int getInt(String name, int defaultValue)
getInt in class org.apache.hadoop.conf.Configurationpublic void setInt(String name, int value)
setInt in class org.apache.hadoop.conf.Configurationpublic long getLong(String name, long defaultValue)
getLong in class org.apache.hadoop.conf.Configurationpublic void setLong(String name, long value)
setLong in class org.apache.hadoop.conf.Configurationpublic float getFloat(String name, float defaultValue)
getFloat in class org.apache.hadoop.conf.Configurationpublic void setFloat(String name, float value)
setFloat in class org.apache.hadoop.conf.Configurationpublic boolean getBoolean(String name, boolean defaultValue)
getBoolean in class org.apache.hadoop.conf.Configurationpublic void setBoolean(String name, boolean value)
setBoolean in class org.apache.hadoop.conf.Configurationpublic void setBooleanIfUnset(String name, boolean value)
setBooleanIfUnset in class org.apache.hadoop.conf.Configurationpublic <T extends Enum<T>> void setEnum(String name, T value)
setEnum in class org.apache.hadoop.conf.Configurationpublic <T extends Enum<T>> T getEnum(String name, T defaultValue)
getEnum in class org.apache.hadoop.conf.Configurationpublic org.apache.hadoop.conf.Configuration.IntegerRanges getRange(String name, String defaultValue)
getRange in class org.apache.hadoop.conf.Configurationpublic Collection<String> getStringCollection(String name)
getStringCollection in class org.apache.hadoop.conf.Configurationpublic String[] getStrings(String name)
getStrings in class org.apache.hadoop.conf.Configurationpublic String[] getStrings(String name, String... defaultValue)
getStrings in class org.apache.hadoop.conf.Configurationpublic void setStrings(String name, String... values)
setStrings in class org.apache.hadoop.conf.Configurationpublic Class<?> getClassByName(String name) throws ClassNotFoundException
getClassByName in class org.apache.hadoop.conf.ConfigurationClassNotFoundExceptionpublic Class<?>[] getClasses(String name, Class<?>... defaultValue)
getClasses in class org.apache.hadoop.conf.Configurationpublic Class<?> getClass(String name, Class<?> defaultValue)
getClass in class org.apache.hadoop.conf.Configurationpublic <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
getClass in class org.apache.hadoop.conf.Configurationpublic <U> List<U> getInstances(String name, Class<U> xface)
getInstances in class org.apache.hadoop.conf.Configurationpublic void setClass(String name, Class<?> theClass, Class<?> xface)
setClass in class org.apache.hadoop.conf.Configurationpublic org.apache.hadoop.fs.Path getLocalPath(String dirsProp, String path) throws IOException
getLocalPath in class org.apache.hadoop.conf.ConfigurationIOExceptionpublic File getFile(String dirsProp, String path) throws IOException
getFile in class org.apache.hadoop.conf.ConfigurationIOExceptionpublic URL getResource(String name)
getResource in class org.apache.hadoop.conf.Configurationpublic InputStream getConfResourceAsInputStream(String name)
getConfResourceAsInputStream in class org.apache.hadoop.conf.Configurationpublic Reader getConfResourceAsReader(String name)
getConfResourceAsReader in class org.apache.hadoop.conf.Configurationpublic int size()
size in class org.apache.hadoop.conf.Configurationpublic void clear()
clear in class org.apache.hadoop.conf.Configurationpublic void writeXml(OutputStream out) throws IOException
writeXml in class org.apache.hadoop.conf.ConfigurationIOExceptionpublic void writeXml(Writer out) throws IOException
writeXml in class org.apache.hadoop.conf.ConfigurationIOExceptionpublic static void dumpConfiguration(org.apache.hadoop.conf.Configuration config,
Writer out)
throws IOException
IOExceptionpublic ClassLoader getClassLoader()
getClassLoader in class org.apache.hadoop.conf.Configurationpublic void setClassLoader(ClassLoader classLoader)
setClassLoader in class org.apache.hadoop.conf.Configurationpublic String toString()
toString in class org.apache.hadoop.conf.Configurationpublic void setQuietMode(boolean quietmode)
setQuietMode in class org.apache.hadoop.conf.Configurationpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.conf.ConfigurationIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.conf.ConfigurationIOExceptionCopyright © 2012–2016. All rights reserved.