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}
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<String>
getPathSegments(String path)
void
insert(String path, Map<String,String> replacements, T o)
void
insert(List<String> parts, Map<String,String> replacements, T o)
T
lookup(String path, Map<String,String> templateValues)
T
lookup(String path, Map<String,String> templateValues, Set<String> paths)
T
lookup(List<String> path, Map<String,String> templateValues)
static String
templateName(String templateStr)
-