Class BooleanVectorValueMatcher
- java.lang.Object
-
- org.apache.druid.query.filter.vector.BaseVectorValueMatcher
-
- org.apache.druid.query.filter.vector.BooleanVectorValueMatcher
-
- All Implemented Interfaces:
VectorValueMatcher
,VectorSizeInspector
public final class BooleanVectorValueMatcher extends BaseVectorValueMatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadableVectorMatch
match(ReadableVectorMatch mask, boolean includeUnknown)
Examine the current vector and return a match indicating what is accepted.static BooleanVectorValueMatcher
of(VectorSizeInspector selector, ConstantMatcherType matcherType)
-
Methods inherited from class org.apache.druid.query.filter.vector.BaseVectorValueMatcher
getCurrentVectorSize, getMaxVectorSize
-
-
-
-
Method Detail
-
of
public static BooleanVectorValueMatcher of(VectorSizeInspector selector, ConstantMatcherType matcherType)
-
match
public ReadableVectorMatch match(ReadableVectorMatch mask, boolean includeUnknown)
Description copied from interface:VectorValueMatcher
Examine the current vector and return a match indicating what is accepted.Does not modify "mask".
- Parameters:
mask
- must not be null; useVectorMatch.allTrue(int)
if you don't need a mask.includeUnknown
- mapping for Druid native two state logic system into SQL three-state logic system. If set to true, this method should also return true if the result is 'unknown' to be a match, such as from the input being null valued. Used primarily to allowNotFilter
to invert a match in an SQL compliant manner- Returns:
- the subset of "mask" that this value matcher accepts. May be the same instance as {@param mask} if every row in the mask matches the filter.
-
-