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 class
LikeDimFilter.LikeMatcher.SuffixMatch
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static LikeDimFilter.LikeMatcher
from(String likePattern, Character escapeChar)
String
getPrefix()
LikeDimFilter.LikeMatcher.SuffixMatch
getSuffixMatch()
int
hashCode()
boolean
matches(String s)
boolean
matchesSuffixOnly(String value)
Checks if the suffix of "value" matches the suffix of this matcher.DruidPredicateFactory
predicateFactory(ExtractionFn extractionFn)
-
-
-
Method Detail
-
from
public static LikeDimFilter.LikeMatcher from(String likePattern, @Nullable Character escapeChar)
-
matchesSuffixOnly
public boolean 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()
-
-