public class HintStrategy extends Object
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
HintStrategy.Builder
Builder for
HintStrategy. |
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableSet<ConverterRule> |
converterRules |
com.google.common.collect.ImmutableSet<RelOptRule> |
excludedRules |
@Nullable HintOptionChecker |
hintOptionChecker |
HintPredicate |
predicate |
| Modifier and Type | Method and Description |
|---|---|
static HintStrategy.Builder |
builder(HintPredicate hintPredicate)
Returns a
HintStrategy builder with given hint predicate. |
public final HintPredicate predicate
public final @Nullable HintOptionChecker hintOptionChecker
public final com.google.common.collect.ImmutableSet<RelOptRule> excludedRules
public final com.google.common.collect.ImmutableSet<ConverterRule> converterRules
public static HintStrategy.Builder builder(HintPredicate hintPredicate)
HintStrategy builder with given hint predicate.hintPredicate - hint predicateHintStrategy.Builder instanceCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.