Class PathTrie<T>

java.lang.Object
org.elasticsearch.common.path.PathTrie<T>

public class PathTrie<T> extends Object
  • Constructor Details

  • Method Details

    • insert

      public void insert(String path, T value)
    • insertOrUpdate

      public void insertOrUpdate(String path, T value, BinaryOperator<T> updater)
      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

      public T retrieve(String path)
    • retrieve

      public T retrieve(String path, Map<String,String> params)
    • retrieveAll

      public Stream<T> retrieveAll(String path, Supplier<Map<String,String>> paramSupplier)
      Returns a stream of the objects stored in the PathTrie, using all possible TrieMatchingMode modes. The paramSupplier is called for each mode to supply a new map of parameters.
    • allNodeValues

      public Iterator<T> allNodeValues()