Class ConfigSetProperties


  • public class ConfigSetProperties
    extends Object
    Utility methods for reading configSet properties. One purpose of this notion is to express immutability. The contents are not used within the config itself; do not confuse this with config user-defined properties. The properties are stored as a JSON file within the configSet that we read into a NamedList. It's optional; there is no file if there are no properties. Note that this logic is also used to load configSet flags; see ConfigSetService.
    • Constructor Detail

      • ConfigSetProperties

        public ConfigSetProperties()
    • Method Detail

      • readFromResourceLoader

        public static org.apache.solr.common.util.NamedList<Object> readFromResourceLoader​(SolrResourceLoader loader,
                                                                                           String name)
        Return the properties associated with the ConfigSet (e.g. immutable)
        Parameters:
        loader - the resource loader
        name - the name of the config set properties file
        Returns:
        the properties in a NamedList
      • readFromInputStream

        public static org.apache.solr.common.util.NamedList<Object> readFromInputStream​(InputStreamReader reader)