Class SqlImplementor.Result

  • Enclosing class:
    SqlImplementor

    public class SqlImplementor.Result
    extends java.lang.Object
    Result of implementing a node.
    • Method Detail

      • hasNestedAggregations

        private boolean hasNestedAggregations​(LogicalAggregate rel)
      • asFrom

        public SqlNode asFrom()
        Returns a node that can be included in the FROM clause or a JOIN. It has an alias that is unique within the query. The alias is implicit if it can be derived using the usual rules (For example, "SELECT * FROM emp" is equivalent to "SELECT * FROM emp AS emp".)
      • asSelect

        public SqlSelect asSelect()
        Converts a non-query node into a SELECT node. Set operators (UNION, INTERSECT, EXCEPT) remain as is.
      • asStatement

        public SqlNode asStatement()
        Converts a non-query node into a SELECT node. Set operators (UNION, INTERSECT, EXCEPT) and DML operators (INSERT, UPDATE, DELETE, MERGE) remain as is.
      • asQueryOrValues

        public SqlNode asQueryOrValues()
        Converts a non-query node into a SELECT node. Set operators (UNION, INTERSECT, EXCEPT) and VALUES remain as is.
      • qualifiedContext

        public SqlImplementor.Context qualifiedContext()
        Returns a context that always qualifies identifiers. Useful if the Context deals with just one arm of a join, yet we wish to generate a join condition that qualifies column names to disambiguate them.
      • resetAlias

        public SqlImplementor.Result resetAlias()
        In join, when the left and right nodes have been generated, update their alias with 'neededAlias' if not null.