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 Summary

    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 Details

    • 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..
      Returns:
      true if the current row matches the condition, or is unknown and includeUnknown is set to true