Class ConfUtils


  • public class ConfUtils
    extends Object
    • Method Detail

      • getFloat

        public static float getFloat​(Map<String,​Object> conf,
                                     String key,
                                     float defaultValue)
      • getBoolean

        public static boolean getBoolean​(Map<String,​Object> conf,
                                         String key,
                                         boolean defaultValue)
      • loadListFromConf

        public static List<String> loadListFromConf​(String paramKey,
                                                    Map stormConf)
        Return one or more Strings regardless of whether they are represented as a single String or a list in the config or an empty List if no value could be found for that key.
      • extractConfigElement

        public static Map extractConfigElement​(Map conf)
        If the config consists of a single key 'config', its values are used instead