Class ProjectionFilterMatch

java.lang.Object
org.apache.druid.segment.filter.TrueFilter
org.apache.druid.segment.projections.ProjectionFilterMatch
All Implemented Interfaces:
Filter

public final class ProjectionFilterMatch extends TrueFilter
Terminal marker indicating that a Filter can be dropped because it matches the filter of a projection
  • Method Details

    • rewriteFilter

      @Nullable public static Filter rewriteFilter(Filter projectionFilter, Filter queryFilter)
      Rewrites a query Filter if possible, removing the Filter of a projection. To match a projection filter, the query filter must be equal to the projection filter, or must contain the projection filter as the child of an AND filter. This method returns null indicating that a rewrite is impossible with the implication that the query cannot use the projection because the projection doesn't contain all the rows the query would match if not using the projection.