Class NodeTypeHintPredicate

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

public class NodeTypeHintPredicate extends Object implements HintPredicate
A hint predicate that specifies which kind of relational expression the hint can be applied to.
  • Constructor Details

    • NodeTypeHintPredicate

      public NodeTypeHintPredicate(org.apache.calcite.rel.hint.NodeTypeHintPredicate.NodeType nodeType)
  • 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