Package org.apache.solr.common.util
Class PathTrie<T>
- java.lang.Object
- 
- org.apache.solr.common.util.PathTrie<T>
 
- 
 public class PathTrie<T> extends Object A utility class to efficiently parse/store/lookup hierarchical paths which are templatized like /collections/{collection}/shards/{shard}/{replica}
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classPathTrie.Node
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidattachValueToNode(PathTrie.Node node, T o)Attaches the provided object to the PathTrie nodestatic List<String>getPathSegments(String path)voidinsert(String path, Map<String,String> replacements, T o)voidinsert(List<String> parts, Map<String,String> replacements, T o)Tlookup(String path, Map<String,String> templateValues)Tlookup(String path, Map<String,String> templateValues, Set<String> paths)Tlookup(List<String> path, Map<String,String> templateValues)Tremove(List<String> path)static voidreplaceTemplates(List<String> parts, Map<String,String> replacements)static StringtemplateName(String templateStr)
 
- 
- 
- 
Method Detail- 
replaceTemplatespublic static void replaceTemplates(List<String> parts, Map<String,String> replacements) 
 - 
attachValueToNodeprotected void attachValueToNode(PathTrie.Node node, T o) Attaches the provided object to the PathTrie nodeThe default implementation overwrites any existing values, but this can be overwritten by subclasses. 
 
- 
 
-