public static class HintStrategy.Builder extends Object
HintStrategy.| Modifier and Type | Method and Description |
|---|---|
HintStrategy |
build() |
HintStrategy.Builder |
converterRules(ConverterRule... rules)
Registers an array of desired converter rules during the
RelOptPlanner planning. |
HintStrategy.Builder |
excludedRules(RelOptRule... rules)
Registers an array of rules to exclude during the
RelOptPlanner planning. |
HintStrategy.Builder |
optionChecker(HintOptionChecker optionChecker)
Registers a hint option checker to validate the hint options.
|
public HintStrategy.Builder optionChecker(HintOptionChecker optionChecker)
public HintStrategy.Builder excludedRules(RelOptRule... rules)
RelOptPlanner 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:
excludedRules contains the rulerules - excluded rulespublic HintStrategy.Builder converterRules(ConverterRule... rules)
RelOptPlanner 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:
excludedRules contains the ruleIf no converter rules are specified, we assume the conversion is possible.
rules - desired converter rulespublic HintStrategy build()
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.