Package org.apache.phoenix.parse

Examples of org.apache.phoenix.parse.TableNode


                    return NODE_FACTORY.bindTable(alias == null ? null : '"' + alias + '"', getReplacedTableName(replaceRef));
                }

                @Override
                public TableNode visit(JoinTableNode joinNode) throws SQLException {
                    TableNode lhs = joinNode.getLHS();
                    TableNode rhs = joinNode.getRHS();
                    TableNode lhsReplace = lhs.accept(this);
                    TableNode rhsReplace = rhs.accept(this);
                    if (lhs == lhsReplace && rhs == rhsReplace)
                        return joinNode;

                    return NODE_FACTORY.join(joinNode.getType(), lhsReplace, rhsReplace, joinNode.getOnNode());
                }
View Full Code Here


                    return NODE_FACTORY.bindTable(alias == null ? null : '"' + alias + '"', getReplacedTableName(replaceRef));
                }

                @Override
                public TableNode visit(JoinTableNode joinNode) throws SQLException {
                    TableNode lhs = joinNode.getLHS();
                    TableNode rhs = joinNode.getRHS();
                    TableNode lhsReplace = lhs.accept(this);
                    TableNode rhsReplace = rhs.accept(this);
                    if (lhs == lhsReplace && rhs == rhsReplace)
                        return joinNode;

                    return NODE_FACTORY.join(joinNode.getType(), lhsReplace, rhsReplace, joinNode.getOnNode());
                }
View Full Code Here

            }
        };
       
        // get optimized plans for join tables
        for (int i = 1; i < from.size(); i++) {
            TableNode jNode = from.get(i);
            assert (jNode instanceof JoinTableNode);
            TableNode tNode = ((JoinTableNode) jNode).getTable();
            for (JoinTable jTable : join.getJoinTables()) {
                if (jTable.getTableNode() != tNode)
                    continue;
                TableRef table = jTable.getTable();
                List<ParseNode> groupBy = table.equals(groupByTableRef) ? select.getGroupBy() : null;
View Full Code Here

            this.tableRefToJoinTableMap = new HashMap<TableRef, JoinTable>();
            ColumnParseNodeVisitor generalRefVisitor = new ColumnParseNodeVisitor(resolver);
            ColumnParseNodeVisitor joinLocalRefVisitor = new ColumnParseNodeVisitor(resolver);
            ColumnParseNodeVisitor prefilterRefVisitor = new ColumnParseNodeVisitor(resolver);           
            int lastRightJoinIndex = -1;
            TableNode tableNode = null;
            int i = 0;
            while (iter.hasNext()) {
                tableNode = iter.next();
                if (!(tableNode instanceof JoinTableNode))
                    throw new SQLFeatureNotSupportedException("Implicit joins not supported.");
View Full Code Here

TOP

Related Classes of org.apache.phoenix.parse.TableNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.