Enum PlannerPhase

java.lang.Object
java.lang.Enum<PlannerPhase>
org.apache.drill.exec.planner.PlannerPhase
All Implemented Interfaces:
Serializable, Comparable<PlannerPhase>

public enum PlannerPhase extends Enum<PlannerPhase>
Returns RuleSet for concrete planner phase. Only rules which use DrillRelFactories should be used in this enum.
  • Enum Constant Details

    • LOGICAL_PRUNE_AND_JOIN

      public static final PlannerPhase LOGICAL_PRUNE_AND_JOIN
    • WINDOW_REWRITE

      public static final PlannerPhase WINDOW_REWRITE
    • SUBQUERY_REWRITE

      public static final PlannerPhase SUBQUERY_REWRITE
    • LOGICAL_PRUNE

      public static final PlannerPhase LOGICAL_PRUNE
    • JOIN_PLANNING

      public static final PlannerPhase JOIN_PLANNING
    • ROWKEYJOIN_CONVERSION

      public static final PlannerPhase ROWKEYJOIN_CONVERSION
    • SUM_CONVERSION

      public static final PlannerPhase SUM_CONVERSION
    • PARTITION_PRUNING

      public static final PlannerPhase PARTITION_PRUNING
    • PHYSICAL_PARTITION_PRUNING

      public static final PlannerPhase PHYSICAL_PARTITION_PRUNING
    • DIRECTORY_PRUNING

      public static final PlannerPhase DIRECTORY_PRUNING
    • LOGICAL

      public static final PlannerPhase LOGICAL
    • PHYSICAL

      public static final PlannerPhase PHYSICAL
    • TRANSITIVE_CLOSURE

      public static final PlannerPhase TRANSITIVE_CLOSURE
  • Field Details

    • description

      public final String description
  • Method Details

    • values

      public static PlannerPhase[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PlannerPhase valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getRules

      public abstract org.apache.calcite.tools.RuleSet getRules(OptimizerRulesContext context, Collection<StoragePlugin> plugins)