Class HintPredicates

java.lang.Object
org.apache.calcite.rel.hint.HintPredicates

public abstract class HintPredicates extends Object
A collection of hint predicates.
  • Field Details

    • SET_VAR

      public static final HintPredicate SET_VAR
      A hint predicate that indicates a hint can only be used to the whole query(no specific nodes).
    • JOIN

      public static final HintPredicate JOIN
      A hint predicate that indicates a hint can only be used to Join nodes.
    • TABLE_SCAN

      public static final HintPredicate TABLE_SCAN
      A hint predicate that indicates a hint can only be used to TableScan nodes.
    • PROJECT

      public static final HintPredicate PROJECT
      A hint predicate that indicates a hint can only be used to Project nodes.
    • AGGREGATE

      public static final HintPredicate AGGREGATE
      A hint predicate that indicates a hint can only be used to Aggregate nodes.
    • CALC

      public static final HintPredicate CALC
      A hint predicate that indicates a hint can only be used to Calc nodes.
    • CORRELATE

      public static final HintPredicate CORRELATE
      A hint predicate that indicates a hint can only be used to Correlate nodes.
    • FILTER

      public static final HintPredicate FILTER
      A hint predicate that indicates a hint can only be used to Filter nodes.
    • SETOP

      public static final HintPredicate SETOP
      A hint predicate that indicates a hint can only be used to SetOp nodes.
    • SORT

      public static final HintPredicate SORT
      A hint predicate that indicates a hint can only be used to Sort nodes.
    • VALUES

      public static final HintPredicate VALUES
      A hint predicate that indicates a hint can only be used to Values nodes.
    • WINDOW

      public static final HintPredicate WINDOW
      A hint predicate that indicates a hint can only be used to Window nodes.
    • SNAPSHOT

      public static final HintPredicate SNAPSHOT
      A hint predicate that indicates a hint can only be used to Snapshot nodes.
    • TABLE_FUNCTION_SCAN

      public static final HintPredicate TABLE_FUNCTION_SCAN
      A hint predicate that indicates a hint can only be used to TableFunctionScan nodes.
  • Constructor Details

    • HintPredicates

      public HintPredicates()
  • Method Details

    • and

      public static HintPredicate and(HintPredicate... hintPredicates)
      Returns a composed hint predicate that represents a short-circuiting logical AND of an array of hint predicates hintPredicates. When evaluating the composed predicate, if a predicate is false, then all the left predicates are not evaluated.

      The predicates are evaluated in sequence.

    • or

      public static HintPredicate or(HintPredicate... hintPredicates)
      Returns a composed hint predicate that represents a short-circuiting logical OR of an array of hint predicates hintPredicates. When evaluating the composed predicate, if a predicate is true, then all the left predicates are not evaluated.

      The predicates are evaluated in sequence.