Class QueryHintsResolver

java.lang.Object
org.apache.calcite.rel.RelShuttleImpl
org.apache.flink.table.planner.hint.QueryHintsRelShuttle
org.apache.flink.table.planner.plan.optimize.QueryHintsResolver
All Implemented Interfaces:
org.apache.calcite.rel.RelShuttle

public class QueryHintsResolver extends QueryHintsRelShuttle
Resolve and validate the query hints.

Note: duplicate query hints are not checked here.

For KV hints such as state ttl hints and lookup join hints, they will be merged. If the keys with same hint name conflict, only the first value is chosen.

For LIST hints such as regular join hints, they will all be retained.

  • Field Summary

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

    stack
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.calcite.rel.RelNode
    doVisit(org.apache.calcite.rel.RelNode node)
     

    Methods inherited from class org.apache.flink.table.planner.hint.QueryHintsRelShuttle

    visit, visit, visit, visit, visit

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

    visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitChild, visitChildren

    Methods inherited from class java.lang.Object

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

    • QueryHintsResolver

      public QueryHintsResolver()
  • Method Details

    • doVisit

      protected org.apache.calcite.rel.RelNode doVisit(org.apache.calcite.rel.RelNode node)
      Specified by:
      doVisit in class QueryHintsRelShuttle