Class RexAnalyzer


  • public class RexAnalyzer
    extends java.lang.Object
    Analyzes an expression, figures out what are the unbound variables, assigns a variety of values to each unbound variable, and evaluates the expression.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  RexAnalyzer.VariableCollector
      Collects the variables (or other bindable sites) in an expression, and counts features (such as CAST) that RexInterpreter cannot handle.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Iterable<java.util.Map<RexNode,​java.lang.Comparable>> assignments()
      Generates a map of variables and lists of values that could be assigned to them.
      private static java.util.List<java.lang.Comparable> getComparables​(RexNode variable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • variables

        public final java.util.List<RexNode> variables
      • unsupportedCount

        public final int unsupportedCount
    • Method Detail

      • assignments

        public java.lang.Iterable<java.util.Map<RexNode,​java.lang.Comparable>> assignments()
        Generates a map of variables and lists of values that could be assigned to them.
      • getComparables

        private static java.util.List<java.lang.Comparable> getComparables​(RexNode variable)