Class FilterPushDownStrategy

java.lang.Object
org.apache.drill.exec.store.base.filter.FilterPushDownStrategy

public class FilterPushDownStrategy extends Object
Generalized filter push-down strategy which performs all the tree-walking and tree restructuring work, allowing a "listener" to do the work needed for a particular scan.

General usage in a storage plugin:

 public Set getOptimizerRules(
        OptimizerRulesContext optimizerRulesContext, PlannerPhase phase) {
   switch (phase) {
     case PHYSICAL:
       return FilterPushDownStrategy.rulesFor(optimizerRulesContext,
        new MyPushDownListener(...));
     ...
   }
 }