Class ClearQueryHintsOnUnmatchedNodesShuttle

java.lang.Object
org.apache.calcite.rel.RelShuttleImpl
org.apache.calcite.rel.RelHomogeneousShuttle
org.apache.flink.table.planner.hint.ClearQueryHintsOnUnmatchedNodesShuttle
All Implemented Interfaces:
org.apache.calcite.rel.RelShuttle

public class ClearQueryHintsOnUnmatchedNodesShuttle extends org.apache.calcite.rel.RelHomogeneousShuttle
Clear the invalid query hints in the unmatched nodes. For example, a query hint may be attached in the Project node at first. After accepting this shuttle, the query hint in the Project node will be cleared.

See more at FlinkHintStrategies.

Tips, hints about view and alias will not be cleared.

  • Field Summary

    Fields inherited from class org.apache.calcite.rel.RelShuttleImpl

    stack
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClearQueryHintsOnUnmatchedNodesShuttle(org.apache.calcite.rel.hint.HintStrategyTable hintStrategyTable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.rel.RelNode
    visit(org.apache.calcite.rel.RelNode other)
     

    Methods inherited from class org.apache.calcite.rel.RelHomogeneousShuttle

    visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit

    Methods inherited from class org.apache.calcite.rel.RelShuttleImpl

    visitChild, visitChildren

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClearQueryHintsOnUnmatchedNodesShuttle

      public ClearQueryHintsOnUnmatchedNodesShuttle(org.apache.calcite.rel.hint.HintStrategyTable hintStrategyTable)
  • Method Details

    • visit

      public org.apache.calcite.rel.RelNode visit(org.apache.calcite.rel.RelNode other)
      Specified by:
      visit in interface org.apache.calcite.rel.RelShuttle
      Overrides:
      visit in class org.apache.calcite.rel.RelShuttleImpl