Class ObjectVectorValueMatcher
java.lang.Object
org.apache.druid.query.filter.vector.ObjectVectorValueMatcher
- All Implemented Interfaces:
VectorValueMatcherFactory
Generic object matcher on top of a
VectorObjectSelector. String object selectors specifically should use
StringObjectVectorValueMatcher instead.
Note that this matcher currently will always behave as a nil matcher when used with a string matcher, since there is
not enough machinery in place to allow custom comparison of string values against arbitrary array or complex types.
In other words, how do we compare a string value from a selector filter against an array or a sketch? The short
answer is we can't right now. Perhaps complex type serde could be extended to provide a string matcher to handle the
complex type case? For array types, we might consider creating a different filter (which would also be an option for
complex 'selectors'), or extending selector to support arrays of values.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmakeMatcher(Object matchValue, ColumnType matchValueType) Specialized value matcher for equality used byEqualityFilter.makeMatcher(String value) Specialized value matcher for string equality used bySelectorDimFiltermakeMatcher(DruidPredicateFactory predicateFactory)
-
Field Details
-
selector
-
-
Constructor Details
-
ObjectVectorValueMatcher
-
-
Method Details
-
makeMatcher
Description copied from interface:VectorValueMatcherFactorySpecialized value matcher for string equality used bySelectorDimFilter- Specified by:
makeMatcherin interfaceVectorValueMatcherFactory
-
makeMatcher
Description copied from interface:VectorValueMatcherFactorySpecialized value matcher for equality used byEqualityFilter. The matchValue parameter must be the appropriate Java type for the matchValueTypeColumnType. Implementors can use this information to coerce the match value to the native type of the values to match against as necessary.- Specified by:
makeMatcherin interfaceVectorValueMatcherFactory
-
makeMatcher
- Specified by:
makeMatcherin interfaceVectorValueMatcherFactory
-