Class FilterPath
java.lang.Object
org.elasticsearch.xcontent.support.filtering.FilterPath
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilterPath[]
boolean
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.
-
Method Details
-
hasDoubleWildcard
public boolean hasDoubleWildcard() -
matches
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 namenextFilters
- nextFilters is a List, used to check the inner property of namematchFieldNamesWithDots
- support dot in field name or not- Returns:
- true if the name equal a final node, otherwise return false
-
compile
-