@InterfaceAudience.Private class ReadOnlyConfiguration extends org.apache.hadoop.conf.Configuration
| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.conf.Configuration |
conf |
| Constructor and Description |
|---|
ReadOnlyConfiguration(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResource(org.apache.hadoop.conf.Configuration conf) |
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() |
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) |
Set<String> |
getFinalParameters() |
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) |
char[] |
getPassword(String name) |
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) |
InetSocketAddress |
getSocketAddr(String hostProperty,
String addressProperty,
String defaultAddressValue,
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) |
Iterator<Map.Entry<String,String>> |
iterator() |
void |
readFields(DataInput in) |
void |
reloadConfiguration() |
void |
set(String name,
String value) |
void |
set(String name,
String value,
String source) |
void |
setAllowNullValueProperties(boolean val) |
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 |
setDeprecatedProperties() |
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) |
InetSocketAddress |
updateConnectAddr(String hostProperty,
String addressProperty,
String defaultAddressValue,
InetSocketAddress addr) |
void |
write(DataOutput out) |
void |
writeXml(OutputStream out) |
void |
writeXml(Writer out) |
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, dumpConfiguration, dumpConfiguration, dumpDeprecatedKeys, getPasswordFromConfig, getPasswordFromCredentialProviders, getProps, getPropsWithPrefix, getTimeDurations, hasWarnedDeprecation, isDeprecated, main, onlyKeyExists, reloadExistingConfigurations, setRestrictSystemProperties, setRestrictSystemPropertiesDefault, setRestrictSystemProps, writeXmlclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprivate final org.apache.hadoop.conf.Configuration conf
ReadOnlyConfiguration(org.apache.hadoop.conf.Configuration conf)
public void setDeprecatedProperties()
setDeprecatedProperties in class org.apache.hadoop.conf.Configurationpublic 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 addResource(org.apache.hadoop.conf.Configuration conf)
addResource in class org.apache.hadoop.conf.Configurationpublic void reloadConfiguration()
reloadConfiguration in class org.apache.hadoop.conf.Configurationpublic void setAllowNullValueProperties(boolean val)
setAllowNullValueProperties 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 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.Configurationpublic 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 char[] getPassword(String name) throws IOException
getPassword in class org.apache.hadoop.conf.ConfigurationIOExceptionpublic InetSocketAddress getSocketAddr(String hostProperty, String addressProperty, String defaultAddressValue, int defaultPort)
getSocketAddr 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 hostProperty, String addressProperty, String defaultAddressValue, InetSocketAddress addr)
updateConnectAddr 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 Set<String> getFinalParameters()
getFinalParameters 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 ClassLoader getClassLoader()
getClassLoader in class org.apache.hadoop.conf.Configurationpublic void setClassLoader(ClassLoader classLoader)
setClassLoader 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.ConfigurationCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.