java.lang.Object
org.elasticsearch.xcontent.support.filtering.FilterPath

public class FilterPath extends Object
  • Method Details

    • hasDoubleWildcard

      public boolean hasDoubleWildcard()
    • matches

      public boolean matches(String name, List<FilterPath> nextFilters, boolean matchFieldNamesWithDots)
      check if the name matches filter nodes if the name equals the filter node name, the node will add to nextFilters. if the filter node is a final node, it means the name matches the pattern, and return true if the name don't equal a final node, then return false, continue to check the inner filter node if current node is a double wildcard node, the node will also add to nextFilters.
      Parameters:
      name - the xcontent property name
      nextFilters - nextFilters is a List, used to check the inner property of name
      matchFieldNamesWithDots - support dot in field name or not
      Returns:
      true if the name equal a final node, otherwise return false
    • compile

      public static FilterPath[] compile(Set<String> filters)