Package org.apache.solr.core
Class ConfigSetProperties
- java.lang.Object
-
- org.apache.solr.core.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; seeConfigSetService
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_FILENAME
static String
IMMUTABLE_CONFIGSET_ARG
-
Constructor Summary
Constructors Constructor Description ConfigSetProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NamedList
readFromInputStream(InputStreamReader reader)
static NamedList
readFromResourceLoader(SolrResourceLoader loader, String name)
Return the properties associated with the ConfigSet (e.g.
-
-
-
Field Detail
-
DEFAULT_FILENAME
public static final String DEFAULT_FILENAME
- See Also:
- Constant Field Values
-
IMMUTABLE_CONFIGSET_ARG
public static final String IMMUTABLE_CONFIGSET_ARG
- See Also:
- Constant Field Values
-
-
Method Detail
-
readFromResourceLoader
public static NamedList readFromResourceLoader(SolrResourceLoader loader, String name)
Return the properties associated with the ConfigSet (e.g. immutable)- Parameters:
loader
- the resource loadername
- the name of the config set properties file- Returns:
- the properties in a NamedList
-
readFromInputStream
public static NamedList readFromInputStream(InputStreamReader reader)
-
-