Class SubquerySchemaComputer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean found
      A flag used to track whether subqueries were found while traversing the expression tree.
      private static org.apache.logging.log4j.Logger logger
      A logging object for reporting anything interesting that happens.
      private SelectClause selectClause
      This is the parent query that may contain subqueries.
      private TableManager tableManager
      This is the table-manager used to access table schemas.
    • Field Detail

      • logger

        private static org.apache.logging.log4j.Logger logger
        A logging object for reporting anything interesting that happens.
      • selectClause

        private SelectClause selectClause
        This is the parent query that may contain subqueries.
      • tableManager

        private TableManager tableManager
        This is the table-manager used to access table schemas.
      • found

        private boolean found
        A flag used to track whether subqueries were found while traversing the expression tree.
    • Constructor Detail

    • Method Detail

      • enter

        public void enter​(Expression e)
        This method identifies SubqueryOperator objects, retrieves the subquery, and then generates a plan for the subquery.
        Specified by:
        enter in interface ExpressionProcessor
        Parameters:
        e - the expression node being entered
      • leave

        public Expression leave​(Expression e)
        This method is a no-op for this expression processor.
        Specified by:
        leave in interface ExpressionProcessor
        Parameters:
        e - the expression node being left
        Returns:
        the passed-in expression e.
      • foundSubqueries

        public boolean foundSubqueries()
      • clearFoundFlag

        public void clearFoundFlag()