Package org.apache.solr.common.util
Class PathTrie<T>
java.lang.Object
org.apache.solr.common.util.PathTrie<T>
A utility class to efficiently parse/store/lookup hierarchical paths which are templatized like
/collections/{collection}/shards/{shard}/{replica}
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachValueToNode(PathTrie<T>.Node node, T o) Attaches the provided object to the PathTrie nodegetPathSegments(String path) voidvoidstatic voidstatic StringtemplateName(String templateStr)
-
Constructor Details
-
PathTrie
public PathTrie() -
PathTrie
-
-
Method Details
-
insert
-
insert
-
replaceTemplates
-
getPathSegments
-
remove
-
lookup
-
lookup
-
lookup
-
templateName
-
attachValueToNode
Attaches the provided object to the PathTrie nodeThe default implementation overwrites any existing values, but this can be overwritten by subclasses.
-