Package org.apache.solr.core
Class ConfigOverlay
- java.lang.Object
-
- org.apache.solr.core.ConfigOverlay
-
- All Implemented Interfaces:
org.apache.solr.common.MapSerializable
public class ConfigOverlay extends Object implements org.apache.solr.common.MapSerializable
This class encapsulates the config overlay json file. It is immutable and any edit operations performed on this 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 version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigOverlay
addNamedPlugin(Map<String,Object> info, String typ)
static Class<?>
checkEditable(String path, boolean isXpath, List<String> hierarchy)
ConfigOverlay
deleteNamedPlugin(String name, String typ)
Map<String,Object>
getEditableSubProperties(String xpath)
Map<String,Map<String,Object>>
getNamedPlugins(String typ)
Map<String,Object>
getUserProps()
int
getVersion()
Object
getXPathProperty(String xpath)
Object
getXPathProperty(String xpath, boolean onlyPrimitive)
Object
getXPathProperty(List<String> path)
static boolean
isEditableProp(String path, boolean isXpath, List<String> hierarchy)
ConfigOverlay
setProperty(String name, Object val)
ConfigOverlay
setUserProperty(String key, Object val)
byte[]
toByteArray()
Map<String,Object>
toMap(Map<String,Object> map)
String
toString()
ConfigOverlay
unsetProperty(String name)
ConfigOverlay
unsetUserProperty(String key)
-
-
-
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()
-
getVersion
public int getVersion()
-
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 interfaceorg.apache.solr.common.MapSerializable
-
addNamedPlugin
public ConfigOverlay addNamedPlugin(Map<String,Object> info, String typ)
-
deleteNamedPlugin
public ConfigOverlay deleteNamedPlugin(String name, String typ)
-
-