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 boolean
matches(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 result is 'unknown' to be a match, such as from the input being null valued. Used primarily to allowNotFilter
to invert a match in a SQL compliant manner- Returns:
- true if the current row matches the condition, or is unknown and
includeUnknown
is set to true
-
-