Package org.apache.druid.query.filter
Class LikeDimFilter.LikeMatcher
- java.lang.Object
-
- org.apache.druid.query.filter.LikeDimFilter.LikeMatcher
-
- Enclosing class:
- LikeDimFilter
public static class LikeDimFilter.LikeMatcher extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLikeDimFilter.LikeMatcher.SuffixMatch
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static LikeDimFilter.LikeMatcherfrom(String likePattern, Character escapeChar)StringgetPrefix()LikeDimFilter.LikeMatcher.SuffixMatchgetSuffixMatch()inthashCode()DruidPredicateMatchmatches(String s)DruidPredicateMatchmatchesSuffixOnly(String value)Checks if the suffix of "value" matches the suffix of this matcher.DruidPredicateFactorypredicateFactory(ExtractionFn extractionFn)StringtoString()
-
-
-
Method Detail
-
from
public static LikeDimFilter.LikeMatcher from(String likePattern, @Nullable Character escapeChar)
-
matches
public DruidPredicateMatch matches(@Nullable String s)
-
matchesSuffixOnly
public DruidPredicateMatch matchesSuffixOnly(@Nullable String value)
Checks if the suffix of "value" matches the suffix of this matcher. The first prefix.length() characters of "value" are ignored. This method is useful if you've already independently verified the prefix.
-
predicateFactory
public DruidPredicateFactory predicateFactory(ExtractionFn extractionFn)
-
getPrefix
public String getPrefix()
-
getSuffixMatch
public LikeDimFilter.LikeMatcher.SuffixMatch getSuffixMatch()
-
-