Package org.apache.calcite.rel.hint
Class HintStrategy.Builder
java.lang.Object
org.apache.calcite.rel.hint.HintStrategy.Builder
- Enclosing class:
HintStrategy
Builder for
HintStrategy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
converterRules
(ConverterRule... rules) Registers an array of desired converter rules during theRelOptPlanner
planning.excludedRules
(RelOptRule... rules) Registers an array of rules to exclude during theRelOptPlanner
planning.optionChecker
(HintOptionChecker optionChecker) Registers a hint option checker to validate the hint options.
-
Method Details
-
optionChecker
Registers a hint option checker to validate the hint options. -
excludedRules
Registers an array of rules to exclude during theRelOptPlanner
planning.The desired converter rules work together with the excluded rules. We have no validation here but they expect to have the same function(semantic equivalent).
A rule fire cancels if:
- The registered
excludedRules
contains the rule - And the desired converter rules conversion is not possible for the rule matched root node
- Parameters:
rules
- excluded rules
- The registered
-
converterRules
Registers an array of desired converter rules during theRelOptPlanner
planning.The desired converter rules work together with the excluded rules. We have no validation here but they expect to have the same function(semantic equivalent).
A rule fire cancels if:
- The registered
excludedRules
contains the rule - And the desired converter rules conversion is not possible for the rule matched root node
If no converter rules are specified, we assume the conversion is possible.
- Parameters:
rules
- desired converter rules
- The registered
-
build
-