Package org.apache.solr.core
Class ConfigOverlay
- java.lang.Object
-
- org.apache.solr.core.ConfigOverlay
-
- All Implemented Interfaces:
MapSerializable
public class ConfigOverlay extends Object implements MapSerializable
This class encapsulates the config overlay json file. It is immutable and any edit operations performed on tbhis gives a new copy of the object with the changed value
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
static String
NOT_EDITABLE
static String
RESOURCE_NAME
static String
ZNODEVER
-
Constructor Summary
Constructors Constructor Description ConfigOverlay(Map<String,Object> jsonObj, int znodeVersion)
-
Method Summary
-
-
-
Field Detail
-
NOT_EDITABLE
public static final String NOT_EDITABLE
- See Also:
- Constant Field Values
-
RESOURCE_NAME
public static final String RESOURCE_NAME
- See Also:
- Constant Field Values
-
ZNODEVER
public static final String ZNODEVER
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUserProperty
public ConfigOverlay setUserProperty(String key, Object val)
-
unsetUserProperty
public ConfigOverlay unsetUserProperty(String key)
-
setProperty
public ConfigOverlay setProperty(String name, Object val)
-
unsetProperty
public ConfigOverlay unsetProperty(String name)
-
toByteArray
public byte[] toByteArray()
-
getZnodeVersion
public int getZnodeVersion()
-
isEditableProp
public static boolean isEditableProp(String path, boolean isXpath, List<String> hierarchy)
-
checkEditable
public static Class<?> checkEditable(String path, boolean isXpath, List<String> hierarchy)
-
toMap
public Map<String,Object> toMap(Map<String,Object> map)
- Specified by:
toMap
in interfaceMapSerializable
-
addNamedPlugin
public ConfigOverlay addNamedPlugin(Map<String,Object> info, String typ)
-
deleteNamedPlugin
public ConfigOverlay deleteNamedPlugin(String name, String typ)
-
-