Packages

class SimpleTestOptimizer extends Optimizer

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleTestOptimizer
  2. Optimizer
  3. SQLConfHelper
  4. RuleExecutor
  5. Logging
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SimpleTestOptimizer()

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging
  2. case class Batch(name: String, strategy: Strategy, rules: Rule[TreeType]*) extends Product with Serializable

    A batch of rules.

    A batch of rules.

    Attributes
    protected[catalyst]
    Definition Classes
    RuleExecutor
  3. case class FixedPoint(maxIterations: Int, errorOnExceed: Boolean = false, maxIterationsSetting: String = null) extends Strategy with Product with Serializable

    A strategy that runs until fix point or maxIterations times, whichever comes first.

    A strategy that runs until fix point or maxIterations times, whichever comes first. Especially, a FixedPoint(1) batch is supposed to run only once.

    Definition Classes
    RuleExecutor
  4. abstract class Strategy extends AnyRef

    An execution strategy for rules that indicates the maximum number of executions.

    An execution strategy for rules that indicates the maximum number of executions. If the execution reaches fix point (i.e. converge) before maxIterations, it will stop.

    Definition Classes
    RuleExecutor

Value Members

  1. object FinishAnalysis extends Rule[LogicalPlan]

    Apply finish-analysis rules for the entire plan including all subqueries.

    Apply finish-analysis rules for the entire plan including all subqueries.

    Definition Classes
    Optimizer
  2. object OptimizeSubqueries extends Rule[LogicalPlan]

    Optimize all the subqueries inside expression.

    Optimize all the subqueries inside expression.

    Definition Classes
    Optimizer
  3. object UpdateCTERelationStats extends Rule[LogicalPlan]

    Update CTE reference stats.

    Update CTE reference stats.

    Definition Classes
    Optimizer
  4. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def ##: Int
    Definition Classes
    AnyRef → Any
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. final def batches: Seq[Batch]

    Returns (defaultBatches - (excludedRules - nonExcludableRules)), the rule batches that eventually run in the Optimizer.

    Returns (defaultBatches - (excludedRules - nonExcludableRules)), the rule batches that eventually run in the Optimizer.

    Implementations of this class should override defaultBatches, and nonExcludableRules if necessary, instead of this method.

    Definition Classes
    OptimizerRuleExecutor
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  10. def conf: SQLConf

    The active config object within the current scope.

    The active config object within the current scope. See SQLConf.get for more information.

    Definition Classes
    SQLConfHelper
  11. def defaultBatches: Seq[Batch]

    Defines the default rule batches in the Optimizer.

    Defines the default rule batches in the Optimizer.

    Implementations of this class should override this method, and nonExcludableRules if necessary, instead of batches. The rule batches that eventually run in the Optimizer, i.e., returned by batches, will be (defaultBatches - (excludedRules - nonExcludableRules)).

    Definition Classes
    Optimizer
  12. def earlyScanPushDownRules: Seq[Rule[LogicalPlan]]

    Override to provide additional rules for early projection and filter pushdown to scans.

    Override to provide additional rules for early projection and filter pushdown to scans.

    Definition Classes
    Optimizer
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. val excludedOnceBatches: Set[String]
    Attributes
    protected
    Definition Classes
    OptimizerRuleExecutor
  16. def execute(plan: LogicalPlan): LogicalPlan

    Executes the batches of rules defined by the subclass.

    Executes the batches of rules defined by the subclass. The batches are executed serially using the defined execution strategy. Within each batch, rules are also executed serially.

    Definition Classes
    RuleExecutor
  17. def executeAndTrack(plan: LogicalPlan, tracker: QueryPlanningTracker): LogicalPlan

    Executes the batches of rules defined by the subclass, and also tracks timing info for each rule using the provided tracker.

    Executes the batches of rules defined by the subclass, and also tracks timing info for each rule using the provided tracker.

    Definition Classes
    RuleExecutor
    See also

    execute

  18. def extendedOperatorOptimizationRules: Seq[Rule[LogicalPlan]]

    Override to provide additional rules for the operator optimization batch.

    Override to provide additional rules for the operator optimization batch.

    Definition Classes
    Optimizer
  19. def fixedPoint: FixedPoint
    Attributes
    protected
    Definition Classes
    Optimizer
  20. def flattenBatches(nestedBatchSequence: Seq[Any]): Seq[Batch]

    A helper method that takes as input a Seq of Batch or Seq[Batch], and flattens it out.

    A helper method that takes as input a Seq of Batch or Seq[Batch], and flattens it out.

    Definition Classes
    Optimizer
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  23. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  24. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  27. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  28. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  41. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  45. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. def name: String

    Name for this rule executor, automatically inferred based on class name.

    Name for this rule executor, automatically inferred based on class name.

    Attributes
    protected
    Definition Classes
    RuleExecutor
  50. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  51. def nonExcludableRules: Seq[String]

    Defines rules that cannot be excluded from the Optimizer even if they are specified in SQL config "excludedRules".

    Defines rules that cannot be excluded from the Optimizer even if they are specified in SQL config "excludedRules".

    Implementations of this class can override this method if necessary. The rule batches that eventually run in the Optimizer, i.e., returned by batches, will be (defaultBatches - (excludedRules - nonExcludableRules)).

    Definition Classes
    Optimizer
  52. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  53. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  54. def preCBORules: Seq[Rule[LogicalPlan]]

    Override to provide additional rules for rewriting plans after operator optimization rules and before any cost-based optimization rules that depend on stats.

    Override to provide additional rules for rewriting plans after operator optimization rules and before any cost-based optimization rules that depend on stats.

    Definition Classes
    Optimizer
  55. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  56. def toString(): String
    Definition Classes
    AnyRef → Any
  57. def validatePlanChanges(previousPlan: LogicalPlan, currentPlan: LogicalPlan): Option[String]

    Defines a validate function that validates the plan changes after the execution of each rule, to make sure these rules make valid changes to the plan.

    Defines a validate function that validates the plan changes after the execution of each rule, to make sure these rules make valid changes to the plan. For example, we can check whether a plan is still resolved after each rule in Optimizer, so that we can catch rules that turn the plan into unresolved.

    Attributes
    protected
    Definition Classes
    OptimizerRuleExecutor
  58. def validatePlanChangesLightweight(previousPlan: LogicalPlan, currentPlan: LogicalPlan): Option[String]

    Defines a validate function that validates the plan changes after the execution of each rule, to make sure these rules make valid changes to the plan.

    Defines a validate function that validates the plan changes after the execution of each rule, to make sure these rules make valid changes to the plan. Since this is enabled by default, this should only consist of very lightweight checks.

    Attributes
    protected
    Definition Classes
    OptimizerRuleExecutor
  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  61. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  62. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging
  63. def withSQLConf[T](pairs: (String, String)*)(f: => T): T

    Sets all SQL configurations specified in pairs, calls f, and then restores all SQL configurations.

    Sets all SQL configurations specified in pairs, calls f, and then restores all SQL configurations.

    Attributes
    protected
    Definition Classes
    SQLConfHelper
  64. case object Once extends Strategy with Product with Serializable

    A strategy that is run once and idempotent.

    A strategy that is run once and idempotent.

    Definition Classes
    RuleExecutor

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Optimizer

Inherited from SQLConfHelper

Inherited from RuleExecutor[LogicalPlan]

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped