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 the Filter "makeMatcher" method, where it is used to identify selected rows for filtered cursors and filtered aggregators.
    • 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 allow NotFilter 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