@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, writeXml
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
private final org.apache.hadoop.conf.Configuration conf
ReadOnlyConfiguration(org.apache.hadoop.conf.Configuration conf)
public void setDeprecatedProperties()
setDeprecatedProperties
in class org.apache.hadoop.conf.Configuration
public void addResource(String name)
addResource
in class org.apache.hadoop.conf.Configuration
public void addResource(URL url)
addResource
in class org.apache.hadoop.conf.Configuration
public void addResource(org.apache.hadoop.fs.Path file)
addResource
in class org.apache.hadoop.conf.Configuration
public void addResource(InputStream in)
addResource
in class org.apache.hadoop.conf.Configuration
public void addResource(InputStream in, String name)
addResource
in class org.apache.hadoop.conf.Configuration
public void addResource(org.apache.hadoop.conf.Configuration conf)
addResource
in class org.apache.hadoop.conf.Configuration
public void reloadConfiguration()
reloadConfiguration
in class org.apache.hadoop.conf.Configuration
public void setAllowNullValueProperties(boolean val)
setAllowNullValueProperties
in class org.apache.hadoop.conf.Configuration
public String getTrimmed(String name)
getTrimmed
in class org.apache.hadoop.conf.Configuration
public String getTrimmed(String name, String defaultValue)
getTrimmed
in class org.apache.hadoop.conf.Configuration
public String getRaw(String name)
getRaw
in class org.apache.hadoop.conf.Configuration
public void set(String name, String value)
set
in class org.apache.hadoop.conf.Configuration
public void set(String name, String value, String source)
set
in class org.apache.hadoop.conf.Configuration
public void setIfUnset(String name, String value)
setIfUnset
in class org.apache.hadoop.conf.Configuration
public String get(String name, String defaultValue)
get
in class org.apache.hadoop.conf.Configuration
public int getInt(String name, int defaultValue)
getInt
in class org.apache.hadoop.conf.Configuration
public int[] getInts(String name)
getInts
in class org.apache.hadoop.conf.Configuration
public void setInt(String name, int value)
setInt
in class org.apache.hadoop.conf.Configuration
public long getLong(String name, long defaultValue)
getLong
in class org.apache.hadoop.conf.Configuration
public long getLongBytes(String name, long defaultValue)
getLongBytes
in class org.apache.hadoop.conf.Configuration
public void setLong(String name, long value)
setLong
in class org.apache.hadoop.conf.Configuration
public float getFloat(String name, float defaultValue)
getFloat
in class org.apache.hadoop.conf.Configuration
public void setFloat(String name, float value)
setFloat
in class org.apache.hadoop.conf.Configuration
public double getDouble(String name, double defaultValue)
getDouble
in class org.apache.hadoop.conf.Configuration
public void setDouble(String name, double value)
setDouble
in class org.apache.hadoop.conf.Configuration
public boolean getBoolean(String name, boolean defaultValue)
getBoolean
in class org.apache.hadoop.conf.Configuration
public void setBoolean(String name, boolean value)
setBoolean
in class org.apache.hadoop.conf.Configuration
public void setBooleanIfUnset(String name, boolean value)
setBooleanIfUnset
in class org.apache.hadoop.conf.Configuration
public <T extends Enum<T>> void setEnum(String name, T value)
setEnum
in class org.apache.hadoop.conf.Configuration
public <T extends Enum<T>> T getEnum(String name, T defaultValue)
getEnum
in class org.apache.hadoop.conf.Configuration
public void setTimeDuration(String name, long value, TimeUnit unit)
setTimeDuration
in class org.apache.hadoop.conf.Configuration
public long getTimeDuration(String name, long defaultValue, TimeUnit unit)
getTimeDuration
in class org.apache.hadoop.conf.Configuration
public Pattern getPattern(String name, Pattern defaultValue)
getPattern
in class org.apache.hadoop.conf.Configuration
public void setPattern(String name, Pattern pattern)
setPattern
in class org.apache.hadoop.conf.Configuration
public String[] getPropertySources(String name)
getPropertySources
in class org.apache.hadoop.conf.Configuration
public org.apache.hadoop.conf.Configuration.IntegerRanges getRange(String name, String defaultValue)
getRange
in class org.apache.hadoop.conf.Configuration
public Collection<String> getStringCollection(String name)
getStringCollection
in class org.apache.hadoop.conf.Configuration
public String[] getStrings(String name)
getStrings
in class org.apache.hadoop.conf.Configuration
public String[] getStrings(String name, String... defaultValue)
getStrings
in class org.apache.hadoop.conf.Configuration
public Collection<String> getTrimmedStringCollection(String name)
getTrimmedStringCollection
in class org.apache.hadoop.conf.Configuration
public String[] getTrimmedStrings(String name)
getTrimmedStrings
in class org.apache.hadoop.conf.Configuration
public String[] getTrimmedStrings(String name, String... defaultValue)
getTrimmedStrings
in class org.apache.hadoop.conf.Configuration
public void setStrings(String name, String... values)
setStrings
in class org.apache.hadoop.conf.Configuration
public char[] getPassword(String name) throws IOException
getPassword
in class org.apache.hadoop.conf.Configuration
IOException
public InetSocketAddress getSocketAddr(String hostProperty, String addressProperty, String defaultAddressValue, int defaultPort)
getSocketAddr
in class org.apache.hadoop.conf.Configuration
public InetSocketAddress getSocketAddr(String name, String defaultAddress, int defaultPort)
getSocketAddr
in class org.apache.hadoop.conf.Configuration
public void setSocketAddr(String name, InetSocketAddress addr)
setSocketAddr
in class org.apache.hadoop.conf.Configuration
public InetSocketAddress updateConnectAddr(String hostProperty, String addressProperty, String defaultAddressValue, InetSocketAddress addr)
updateConnectAddr
in class org.apache.hadoop.conf.Configuration
public InetSocketAddress updateConnectAddr(String name, InetSocketAddress addr)
updateConnectAddr
in class org.apache.hadoop.conf.Configuration
public Class<?> getClassByName(String name) throws ClassNotFoundException
getClassByName
in class org.apache.hadoop.conf.Configuration
ClassNotFoundException
public Class<?> getClassByNameOrNull(String name)
getClassByNameOrNull
in class org.apache.hadoop.conf.Configuration
public Class<?>[] getClasses(String name, Class<?>... defaultValue)
getClasses
in class org.apache.hadoop.conf.Configuration
public Class<?> getClass(String name, Class<?> defaultValue)
getClass
in class org.apache.hadoop.conf.Configuration
public <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
getClass
in class org.apache.hadoop.conf.Configuration
public <U> List<U> getInstances(String name, Class<U> xface)
getInstances
in class org.apache.hadoop.conf.Configuration
public void setClass(String name, Class<?> theClass, Class<?> xface)
setClass
in class org.apache.hadoop.conf.Configuration
public org.apache.hadoop.fs.Path getLocalPath(String dirsProp, String path) throws IOException
getLocalPath
in class org.apache.hadoop.conf.Configuration
IOException
public File getFile(String dirsProp, String path) throws IOException
getFile
in class org.apache.hadoop.conf.Configuration
IOException
public URL getResource(String name)
getResource
in class org.apache.hadoop.conf.Configuration
public InputStream getConfResourceAsInputStream(String name)
getConfResourceAsInputStream
in class org.apache.hadoop.conf.Configuration
public Reader getConfResourceAsReader(String name)
getConfResourceAsReader
in class org.apache.hadoop.conf.Configuration
public Set<String> getFinalParameters()
getFinalParameters
in class org.apache.hadoop.conf.Configuration
public int size()
size
in class org.apache.hadoop.conf.Configuration
public void clear()
clear
in class org.apache.hadoop.conf.Configuration
public void writeXml(OutputStream out) throws IOException
writeXml
in class org.apache.hadoop.conf.Configuration
IOException
public void writeXml(Writer out) throws IOException
writeXml
in class org.apache.hadoop.conf.Configuration
IOException
public ClassLoader getClassLoader()
getClassLoader
in class org.apache.hadoop.conf.Configuration
public void setClassLoader(ClassLoader classLoader)
setClassLoader
in class org.apache.hadoop.conf.Configuration
public void setQuietMode(boolean quietmode)
setQuietMode
in class org.apache.hadoop.conf.Configuration
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class org.apache.hadoop.conf.Configuration
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class org.apache.hadoop.conf.Configuration
IOException
public Map<String,String> getValByRegex(String regex)
getValByRegex
in class org.apache.hadoop.conf.Configuration
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.