Class PathTrie<T>

org.elasticsearch.common.path.PathTrie<T>

public class PathTrie<T> extends
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
    class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     path, T value)
     
    void
     path, T value, <T,​T,​T> updater)
    Insert a value for the given path.
     path)
     
     path, <,​> params)
     
     path, <,​> params, org.elasticsearch.common.path.PathTrie.TrieMatchingMode trieMatchingMode)
     
    <T>
     path, <<,​>> paramSupplier)
    Returns an iterator of the objects stored in the PathTrie, using all possible TrieMatchingMode modes.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

  • Method Details

    • insert

      public void insert( path, T value)
    • insertOrUpdate

      public void insertOrUpdate( path, T value, <T,​T,​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  path)
    • retrieve

      public  path, <,​> params)
    • retrieve

      public  path, <,​> params, org.elasticsearch.common.path.PathTrie.TrieMatchingMode trieMatchingMode)
    • retrieveAll

      public < path, <<,​>> paramSupplier)
      Returns an iterator of the objects stored in the PathTrie, using all possible TrieMatchingMode modes. The paramSupplier is called between each invocation of next() to supply a new map of parameters.