Package org.apache.druid.query.filter
Interface ValueMatcher
-
- All Superinterfaces:
HotLoopCallee
public interface ValueMatcher extends HotLoopCallee
An object that returns a boolean indicating if the "current" row should be selected or not. The most prominent use of this interface is that it is returned by theFilter"makeMatcher" method, where it is used to identify selected rows for filtered cursors and filtered aggregators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatches(boolean includeUnknown)Returns true if the current row matches the condition.-
Methods inherited from interface org.apache.druid.query.monomorphicprocessing.HotLoopCallee
inspectRuntimeShape
-
-
-
-
Method Detail
-
matches
@CalledFromHotLoop boolean matches(boolean includeUnknown)
Returns true if the current row matches the condition.- Parameters:
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 matching result is 'unknown', such as from the input being null valued. SeeNullHandling.useThreeValueLogic().- Returns:
- true if the current row matches the condition, or is unknown and
includeUnknownis set to true
-
-