Examples of ExplainPlan


Examples of com.salesforce.phoenix.compile.ExplainPlan

                    return PhoenixParameterMetaData.EMPTY_PARAMETER_META_DATA;
                }
               
                @Override
                public ExplainPlan getExplainPlan() throws SQLException {
                    return new ExplainPlan(Collections.singletonList("ALTER INDEX"));
                }
            };
        }
View Full Code Here

Examples of com.salesforce.phoenix.compile.ExplainPlan

                    return PhoenixParameterMetaData.EMPTY_PARAMETER_META_DATA;
                }

                @Override
                public ExplainPlan getExplainPlan() throws SQLException {
                    return new ExplainPlan(Collections.singletonList("ALTER " + getTableType() + " ADD COLUMN"));
                }
            };
        }
View Full Code Here

Examples of com.salesforce.phoenix.compile.ExplainPlan

                    return new PhoenixParameterMetaData(0);
                }

                @Override
                public ExplainPlan getExplainPlan() throws SQLException {
                    return new ExplainPlan(Collections.singletonList("ALTER " + getTableType() + " DROP COLUMN"));
                }
            };
        }
View Full Code Here

Examples of com.salesforce.phoenix.compile.ExplainPlan

    }

    @Override
    public ExplainPlan getExplainPlan() throws SQLException {
        if (context.getScanRanges() == ScanRanges.NOTHING) {
            return new ExplainPlan(Collections.singletonList("DEGENERATE SCAN OVER " + tableRef.getTable().getName().getString()));
        }
       
        ResultIterator iterator = iterator();
        List<String> planSteps = Lists.newArrayListWithExpectedSize(5);
        iterator.explain(planSteps);
        return new ExplainPlan(planSteps);
    }
View Full Code Here

Examples of com.salesforce.phoenix.compile.ExplainPlan

                    return PhoenixParameterMetaData.EMPTY_PARAMETER_META_DATA;
                }

                @Override
                public ExplainPlan getExplainPlan() throws SQLException {
                    return new ExplainPlan(Collections.singletonList("DROP TABLE"));
                }
            };
        }
View Full Code Here

Examples of com.salesforce.phoenix.compile.ExplainPlan

                    return PhoenixParameterMetaData.EMPTY_PARAMETER_META_DATA;
                }
               
                @Override
                public ExplainPlan getExplainPlan() throws SQLException {
                    return new ExplainPlan(Collections.singletonList("DROP INDEX"));
                }
            };
        }
View Full Code Here

Examples of com.salesforce.phoenix.compile.ExplainPlan

        }
        if (joinInfo.getPostJoinFilterExpression() != null) {
          planSteps.add("    AFTER-JOIN SERVER FILTER BY " + joinInfo.getPostJoinFilterExpression().toString());
        }
       
        return new ExplainPlan(planSteps);
    }
View Full Code Here

Examples of org.apache.cassandra.cql.common.ExplainPlan

            // first, generate a plan for <stmt>
            // and then, wrapper it with a special ExplainPlan plan
            // whose execution will result in an explain plan rather
            // than a normal execution of the statement.
            plan = doSemanticAnalysis((CommonTree)(ast.getChild(0)));
            plan = new ExplainPlan(plan);
            break;
        default:
            // Unhandled AST node. Raise an internal error.
            throw new SemanticException(CompilerErrorMsg.INTERNAL_ERROR.getMsg(ast, "Unknown Node Type: " + ast.getType()));
        }
View Full Code Here

Examples of org.apache.phoenix.compile.ExplainPlan

    }

    @Override
    public ExplainPlan getExplainPlan() throws SQLException {
        if (context.getScanRanges() == ScanRanges.NOTHING) {
            return new ExplainPlan(Collections.singletonList("DEGENERATE SCAN OVER " + tableRef.getTable().getName().getString()));
        }
       
        // Optimize here when getting explain plan, as queries don't get optimized until after compilation
        QueryPlan plan = context.getConnection().getQueryServices().getOptimizer().optimize(context.getStatement(), this);
        ResultIterator iterator = plan.iterator();
        List<String> planSteps = Lists.newArrayListWithExpectedSize(5);
        iterator.explain(planSteps);
        return new ExplainPlan(planSteps);
    }
View Full Code Here

Examples of org.apache.phoenix.compile.ExplainPlan

                    return PhoenixParameterMetaData.EMPTY_PARAMETER_META_DATA;
                }

                @Override
                public ExplainPlan getExplainPlan() throws SQLException {
                    return new ExplainPlan(Collections.singletonList("DROP TABLE"));
                }

                @Override
                public PhoenixConnection getConnection() {
                    return stmt.getConnection();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.