Class Expression


  • public abstract class Expression
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Expression()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.relique.jdbc.csv.AggregateFunction> aggregateFunctions()  
      java.lang.Object eval​(java.util.Map<java.lang.String,​java.lang.Object> env)  
      boolean isValid()
      Is this a valid expression such as A > 5 or an invalid mix of logical and arithmetic such as (A > 5) + 1 that we cannot detect during parsing.
      void resetAggregateFunctions()
      Reset aggregate function each time it is used in a subquery.
      java.util.List<java.lang.String> usedColumns​(java.util.Set<java.lang.String> availableColumns)  
      • Methods inherited from class java.lang.Object

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

      • Expression

        public Expression()
    • Method Detail

      • eval

        public java.lang.Object eval​(java.util.Map<java.lang.String,​java.lang.Object> env)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • usedColumns

        public java.util.List<java.lang.String> usedColumns​(java.util.Set<java.lang.String> availableColumns)
      • aggregateFunctions

        public java.util.List<org.relique.jdbc.csv.AggregateFunction> aggregateFunctions()
      • isValid

        public boolean isValid()
        Is this a valid expression such as A > 5 or an invalid mix of logical and arithmetic such as (A > 5) + 1 that we cannot detect during parsing.
        Returns:
        true if valid.
      • resetAggregateFunctions

        public void resetAggregateFunctions()
        Reset aggregate function each time it is used in a subquery.