Class HintStrategy

java.lang.Object
org.apache.calcite.rel.hint.HintStrategy

public class HintStrategy extends Object
Represents a hint strategy entry of HintStrategyTable.

A HintStrategy defines:

  • HintPredicate: tests whether a hint should apply to a relational expression;
  • HintOptionChecker: validates the hint options;
  • excludedRules: rules to exclude when a relational expression is going to apply a planner rule;
  • converterRules: fallback rules to apply when there are no proper implementations after excluding the excludedRules.

The HintPredicate is required, all the other items are optional.

HintStrategy is immutable.