Package org.apache.solr.util
Class DataConfigNode
java.lang.Object
org.apache.solr.util.DataConfigNode
- All Implemented Interfaces:
org.apache.solr.common.ConfigNode
ConfigNode impl that applies property substitutions on access.
This class wraps another ConfigNode and applies property substitution immediately when
the txt() or attributes() methods are called. Because property substition is based
on ThreadLocal values, These methods MUST be called while those variables are "active"
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.ConfigNode
org.apache.solr.common.ConfigNode.Helpers -
Field Summary
Fields inherited from interface org.apache.solr.common.ConfigNode
EMPTY, SUBSTITUTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEach call to this method returns a (new) copy of the original Map with substitions applied to the values.org.apache.solr.common.ConfigNodevoidforEachChild(Function<org.apache.solr.common.ConfigNode, Boolean> fun) List<org.apache.solr.common.ConfigNode> List<org.apache.solr.common.ConfigNode> name()txt()Each call to this method returns a (new) copy of the original txt with substitions applied.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.common.ConfigNode
attr, attr, attributesExcept, attrRequired, boolAttr, boolVal, child, childNodesToNamedList, childRequired, doubleVal, exists, get, get, get, intAttr, intVal, isNull, txt
-
Constructor Details
-
DataConfigNode
public DataConfigNode(org.apache.solr.common.ConfigNode root)
-
-
Method Details
-
name
- Specified by:
namein interfaceorg.apache.solr.common.ConfigNode
-
txt
Each call to this method returns a (new) copy of the original txt with substitions applied.- Specified by:
txtin interfaceorg.apache.solr.common.ConfigNode
-
attributes
Each call to this method returns a (new) copy of the original Map with substitions applied to the values.- Specified by:
attributesin interfaceorg.apache.solr.common.ConfigNode
-
child
- Specified by:
childin interfaceorg.apache.solr.common.ConfigNode
-
getAll
- Specified by:
getAllin interfaceorg.apache.solr.common.ConfigNode
-
getAll
public List<org.apache.solr.common.ConfigNode> getAll(Set<String> names, Predicate<org.apache.solr.common.ConfigNode> test) - Specified by:
getAllin interfaceorg.apache.solr.common.ConfigNode
-
forEachChild
- Specified by:
forEachChildin interfaceorg.apache.solr.common.ConfigNode
-