| Constructor and Description |
|---|
ImmutableConfiguration(org.apache.hadoop.conf.Configuration encapsulated) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDefaultResource(String name) |
static void |
addDeprecation(String key,
String newKey) |
static void |
addDeprecation(String key,
String[] newKeys)
Deprecated.
|
static void |
addDeprecation(String key,
String[] newKeys,
String customMessage)
Deprecated.
|
static void |
addDeprecation(String key,
String newKey,
String customMessage) |
void |
addResource(InputStream in) |
void |
addResource(InputStream in,
String name) |
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) |
static void |
dumpDeprecatedKeys() |
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<?> |
getClassByNameOrNull(String name) |
Class<?>[] |
getClasses(String name,
Class<?>... defaultValue) |
ClassLoader |
getClassLoader() |
InputStream |
getConfResourceAsInputStream(String name) |
Reader |
getConfResourceAsReader(String name) |
double |
getDouble(String name,
double defaultValue) |
<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) |
int[] |
getInts(String name) |
org.apache.hadoop.fs.Path |
getLocalPath(String dirsProp,
String path) |
long |
getLong(String name,
long defaultValue) |
long |
getLongBytes(String name,
long defaultValue) |
Pattern |
getPattern(String name,
Pattern defaultValue) |
String[] |
getPropertySources(String name) |
org.apache.hadoop.conf.Configuration.IntegerRanges |
getRange(String name,
String defaultValue) |
String |
getRaw(String name) |
URL |
getResource(String name) |
InetSocketAddress |
getSocketAddr(String name,
String defaultAddress,
int defaultPort) |
Collection<String> |
getStringCollection(String name) |
String[] |
getStrings(String name) |
String[] |
getStrings(String name,
String... defaultValue) |
long |
getTimeDuration(String name,
long defaultValue,
TimeUnit unit) |
String |
getTrimmed(String name) |
String |
getTrimmed(String name,
String defaultValue) |
Collection<String> |
getTrimmedStringCollection(String name) |
String[] |
getTrimmedStrings(String name) |
String[] |
getTrimmedStrings(String name,
String... defaultValue) |
Map<String,String> |
getValByRegex(String regex) |
static boolean |
isDeprecated(String key) |
Iterator<Map.Entry<String,String>> |
iterator() |
static void |
main(String[] args) |
void |
readFields(DataInput in) |
void |
reloadConfiguration() |
void |
set(String name,
String value) |
void |
set(String name,
String value,
String source) |
void |
setBoolean(String name,
boolean value) |
void |
setBooleanIfUnset(String name,
boolean value) |
void |
setClass(String name,
Class<?> theClass,
Class<?> xface) |
void |
setClassLoader(ClassLoader classLoader) |
void |
setDouble(String name,
double value) |
<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 |
setPattern(String name,
Pattern pattern) |
void |
setQuietMode(boolean quietmode) |
void |
setSocketAddr(String name,
InetSocketAddress addr) |
void |
setStrings(String name,
String... values) |
void |
setTimeDuration(String name,
long value,
TimeUnit unit) |
int |
size() |
String |
toString() |
void |
unset(String name) |
InetSocketAddress |
updateConnectAddr(String name,
InetSocketAddress addr) |
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)
@Deprecated public static void addDeprecation(String key, String[] newKeys, String customMessage)
@Deprecated public static void addDeprecation(String key, String[] newKeys)
public static boolean isDeprecated(String key)
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 addResource(InputStream in, String name)
addResource in class org.apache.hadoop.conf.Configurationpublic void reloadConfiguration()
reloadConfiguration in class org.apache.hadoop.conf.Configurationpublic String getTrimmed(String name)
getTrimmed in class org.apache.hadoop.conf.Configurationpublic String getTrimmed(String name, String defaultValue)
getTrimmed 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 set(String name, String value, String source)
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 int[] getInts(String name)
getInts 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 long getLongBytes(String name, long defaultValue)
getLongBytes 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 double getDouble(String name, double defaultValue)
getDouble in class org.apache.hadoop.conf.Configurationpublic void setDouble(String name, double value)
setDouble 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 void setTimeDuration(String name, long value, TimeUnit unit)
setTimeDuration in class org.apache.hadoop.conf.Configurationpublic long getTimeDuration(String name, long defaultValue, TimeUnit unit)
getTimeDuration in class org.apache.hadoop.conf.Configurationpublic Pattern getPattern(String name, Pattern defaultValue)
getPattern in class org.apache.hadoop.conf.Configurationpublic void setPattern(String name, Pattern pattern)
setPattern in class org.apache.hadoop.conf.Configuration@InterfaceStability.Unstable public String[] getPropertySources(String name)
getPropertySources 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 Collection<String> getTrimmedStringCollection(String name)
getTrimmedStringCollection in class org.apache.hadoop.conf.Configurationpublic String[] getTrimmedStrings(String name)
getTrimmedStrings in class org.apache.hadoop.conf.Configurationpublic String[] getTrimmedStrings(String name, String... defaultValue)
getTrimmedStrings in class org.apache.hadoop.conf.Configurationpublic void setStrings(String name, String... values)
setStrings in class org.apache.hadoop.conf.Configurationpublic InetSocketAddress getSocketAddr(String name, String defaultAddress, int defaultPort)
getSocketAddr in class org.apache.hadoop.conf.Configurationpublic void setSocketAddr(String name, InetSocketAddress addr)
setSocketAddr in class org.apache.hadoop.conf.Configurationpublic InetSocketAddress updateConnectAddr(String name, InetSocketAddress addr)
updateConnectAddr in class org.apache.hadoop.conf.Configurationpublic Class<?> getClassByName(String name) throws ClassNotFoundException
getClassByName in class org.apache.hadoop.conf.ConfigurationClassNotFoundExceptionpublic Class<?> getClassByNameOrNull(String name)
getClassByNameOrNull in class org.apache.hadoop.conf.Configurationpublic 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.ConfigurationIOExceptionpublic Map<String,String> getValByRegex(String regex)
getValByRegex in class org.apache.hadoop.conf.Configurationpublic static void dumpDeprecatedKeys()
Copyright © 2012–2016. All rights reserved.