Class FastSuffixMatcher
- java.lang.Object
-
- com.microsoft.azure.kusto.data.auth.endpoints.FastSuffixMatcher
-
public class FastSuffixMatcher extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FastSuffixMatchercreate(FastSuffixMatcher existing, List<MatchRule> rules)Creates a new matcher with the provided matching rules.static FastSuffixMatchercreate(List<MatchRule> rules)Creates a new matcher with the provided matching rules.BooleanisMatch(String candidate)MatchResultmatch(String candidate)Matches an input string to the list of match rules, and returns MatchResult accordingly.
-
-
-
Method Detail
-
create
public static FastSuffixMatcher create(List<MatchRule> rules)
Creates a new matcher with the provided matching rules.- Parameters:
rules- - One or more matching rules to apply when Match is called- Returns:
- FastSuffixMatcher
-
create
public static FastSuffixMatcher create(FastSuffixMatcher existing, List<MatchRule> rules)
Creates a new matcher with the provided matching rules.- Parameters:
existing- - An existing matcher whose rules are to be baseline Matchrules- - One or more matching rules to apply when Match is called- Returns:
- FastSuffixMatcher
-
isMatch
public Boolean isMatch(String candidate)
- Parameters:
candidate- - A string to match to the list of match rules- Returns:
- true if at least one of the rules matched.
-
match
public MatchResult match(String candidate)
Matches an input string to the list of match rules, and returns MatchResult accordingly.
-
-