Package org.elasticsearch.common.path
Class PathTrie<T>
java.lang.Object
org.elasticsearch.common.path.PathTrie<T>
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
insertOrUpdate(String path, T value, BiFunction<T,T,T> updater)
Insert a value for the given path.retrieve(String path, Map<String,String> params, org.elasticsearch.common.path.PathTrie.TrieMatchingMode trieMatchingMode)
Returns an iterator of the objects stored in thePathTrie
, using all possibleTrieMatchingMode
modes.
-
Constructor Details
-
PathTrie
-
-
Method Details
-
insert
-
insertOrUpdate
Insert a value for the given path. If the path already exists, replace the value with:value = updater.apply(oldValue, newValue);
allowing the value to be updated if desired. -
retrieve
-
retrieve
-
retrieve
-
retrieveAll
Returns an iterator of the objects stored in thePathTrie
, using all possibleTrieMatchingMode
modes. TheparamSupplier
is called between each invocation ofnext()
to supply a new map of parameters.
-