Class MapConfigurationProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addProperties​(java.util.Map props)
      Add the given properties to those in this provider, overwriting any existing properties under the same keys.
      java.lang.Object addProperty​(java.lang.String key, java.lang.Object value)
      Add a single property, overwriting any existing property under the same key.
      java.util.Map getProperties()
      Return properties loaded thus far, or empty map if none.
      void setInto​(Configuration conf)
      Set loaded information into the given configuration.
      protected void setInto​(Configuration conf, Log log)
      Set properties into configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapConfigurationProvider

        public MapConfigurationProvider()
        Construct with null properties.
      • MapConfigurationProvider

        public MapConfigurationProvider​(java.util.Map props)
        Constructor; supply properties map.
    • Method Detail

      • addProperties

        public void addProperties​(java.util.Map props)
        Description copied from interface: ConfigurationProvider
        Add the given properties to those in this provider, overwriting any existing properties under the same keys.
        Specified by:
        addProperties in interface ConfigurationProvider
      • addProperty

        public java.lang.Object addProperty​(java.lang.String key,
                                            java.lang.Object value)
        Description copied from interface: ConfigurationProvider
        Add a single property, overwriting any existing property under the same key.
        Specified by:
        addProperty in interface ConfigurationProvider
      • setInto

        protected void setInto​(Configuration conf,
                               Log log)
        Set properties into configuration. If the log is non-null, will log a TRACE message about the set.