@InterfaceAudience.Public public final class ConfigurationUtil extends Object
Configuration instances.| Modifier and Type | Field and Description | 
|---|---|
| static char | KVP_DELIMITER | 
| Modifier | Constructor and Description | 
|---|---|
| private  | ConfigurationUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public static final char KVP_DELIMITER
private ConfigurationUtil()
public static void setKeyValues(org.apache.hadoop.conf.Configuration conf, String key, Collection<Map.Entry<String,String>> keyValues)
KVP_DELIMITERconf - 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 storedsetKeyValues(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 kvpsetKeyValues(Configuration, String, Collection, char)Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.