Class ExpandedIdsMatcher.SimpleIdsMatcher

java.lang.Object
org.elasticsearch.xpack.core.action.util.ExpandedIdsMatcher.SimpleIdsMatcher
Enclosing class:
ExpandedIdsMatcher

public static class ExpandedIdsMatcher.SimpleIdsMatcher extends Object
A simple matcher with one purpose to test whether an id matches a expression that may contain wildcards. Use the idMatches(String) function to test if the given id is matched by any of the matchers. Unlike ExpandedIdsMatcher there is no allowNoMatchForWildcards logic and the matchers are not be removed once they have been matched.
  • Constructor Details

    • SimpleIdsMatcher

      public SimpleIdsMatcher(String[] tokens)
    • SimpleIdsMatcher

      public SimpleIdsMatcher(String expression)
  • Method Details

    • idMatches

      public boolean idMatches(String id)
      Do any of the matchers match id?
      Parameters:
      id - Id to test
      Returns:
      True if the given id is matched by any of the matchers