|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.ConfigurationUtil
@InterfaceAudience.Public @InterfaceStability.Evolving public final class ConfigurationUtil
Utilities for storing more complex collection types in
Configuration
instances.
Field Summary | |
---|---|
static char |
KVP_DELIMITER
|
Method Summary | |
---|---|
static List<Map.Entry<String,String>> |
getKeyValues(org.apache.hadoop.conf.Configuration conf,
String key)
Retrieve a list of key value pairs from configuration, stored under the provided key |
static List<Map.Entry<String,String>> |
getKeyValues(org.apache.hadoop.conf.Configuration conf,
String key,
char delimiter)
Retrieve a list of key value pairs from configuration, stored under the provided key |
static void |
setKeyValues(org.apache.hadoop.conf.Configuration conf,
String key,
Collection<Map.Entry<String,String>> keyValues)
Store a collection of Map.Entry's in conf, with each entry separated by ',' and key values delimited by KVP_DELIMITER |
static void |
setKeyValues(org.apache.hadoop.conf.Configuration conf,
String key,
Collection<Map.Entry<String,String>> keyValues,
char delimiter)
Store a collection of Map.Entry's in conf, with each entry separated by ',' and key values delimited by delimiter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char KVP_DELIMITER
Method Detail |
---|
public static void setKeyValues(org.apache.hadoop.conf.Configuration conf, String key, Collection<Map.Entry<String,String>> keyValues)
KVP_DELIMITER
conf
- configuration to store the collection inkey
- overall key to store keyValues underkeyValues
- kvps to be stored under key in confpublic static void setKeyValues(org.apache.hadoop.conf.Configuration conf, String key, Collection<Map.Entry<String,String>> keyValues, char delimiter)
conf
- configuration to store the collection inkey
- overall key to store keyValues underkeyValues
- kvps to be stored under key in confdelimiter
- character used to separate each kvppublic static List<Map.Entry<String,String>> getKeyValues(org.apache.hadoop.conf.Configuration conf, String key)
conf
- configuration to retrieve kvps fromkey
- key under which the key values are stored
setKeyValues(Configuration, String, Collection, char)
public static List<Map.Entry<String,String>> getKeyValues(org.apache.hadoop.conf.Configuration conf, String key, char delimiter)
conf
- configuration to retrieve kvps fromkey
- key under which the key values are storeddelimiter
- character used to separate each kvp
setKeyValues(Configuration, String, Collection, char)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |