Class CompositeHintPredicate

java.lang.Object
org.apache.calcite.rel.hint.CompositeHintPredicate
All Implemented Interfaces:
HintPredicate

public class CompositeHintPredicate extends Object implements HintPredicate
A HintPredicate to combine multiple hint predicates into one.

The composition can be AND or OR.

  • Method Details

    • apply

      public boolean apply(RelHint hint, RelNode rel)
      Description copied from interface: HintPredicate
      Decides if the given hint can be applied to the relational expression rel.
      Specified by:
      apply in interface HintPredicate
      Parameters:
      hint - The hint
      rel - The relational expression
      Returns:
      True if the hint can be applied to the rel