Class RexImplicationChecker.InputUsageFinder

  • All Implemented Interfaces:
    RexVisitor<java.lang.Void>
    Enclosing class:
    RexImplicationChecker

    private static class RexImplicationChecker.InputUsageFinder
    extends RexVisitorImpl<java.lang.Void>
    Visitor that builds a usage map of inputs used by an expression.

    E.g: for x > 10 AND y < 20 AND x = 40, usage map is as follows:

    • key: x value: {(>, 10),(=, 40), usageCount = 2}
    • key: y value: {(>, 20), usageCount = 1}