Package plan_runner.query_plans

Examples of plan_runner.query_plans.QueryPlan


    final String queryName = SystemParameters.getString(conf, "DIP_QUERY_NAME");
    // if "/" is the last character, adding one more is not a problem
    final String dataPath = SystemParameters.getString(conf, "DIP_DATA_PATH") + "/";
    final String extension = SystemParameters.getString(conf, "DIP_EXTENSION");

    QueryPlan queryPlan = null;

    // change between this and ...
    if (queryName.equalsIgnoreCase("rst"))
      queryPlan = new RSTPlan(dataPath, extension, conf).getQueryPlan();
    else if (queryName.equalsIgnoreCase("hyracks"))
View Full Code Here


  }

  public Main(String[] args) {
    final String confPath = args[0];
    final Config conf = SystemParameters.fileToStormConfig(confPath);
    final QueryPlan queryPlan = chooseQueryPlan(conf);

    addVariablesToMap(conf, confPath);
    putBatchSizes(queryPlan, conf);
    final TopologyBuilder builder = createTopology(queryPlan, conf);
    StormWrapper.submitTopology(conf, builder);
View Full Code Here

    final String parserConfPath = args[0];
    final ParserMain pm = new ParserMain();

    Map map = pm.createConfig(parserConfPath);
    // map has to filled before plan is created
    final QueryPlan plan = pm.generatePlan(map);
    // we have to set ackers after we know how many workers are there(which
    // is done in generatePlan)
    map = pm.putAckers(plan, map);

    LOG.info(ParserUtil.toString(plan));
View Full Code Here

        inputTupleSchema.add(new ColumnNameType("N2.NAME", _sc));
        inputTupleSchema.add(new ColumnNameType("EXTRACT_YEAR(LINEITEM.SHIPDATE)", _ic));
        inputTupleSchema.add(new ColumnNameType("LINEITEM.EXTENDEDPRICE * (1.0 - LINEITEM.DISCOUNT)", _dblConv));
        inputTupleSchema.add(new ColumnNameType("LINEITEM.ORDERKEY", _lc)); // not used
       
        DataSourceComponent source = new DataSourceComponent("TestFullExprs", "", new QueryPlan());
       
        NameSelectItemsVisitor selectVisitor = new NameSelectItemsVisitor(new TupleSchema(inputTupleSchema), _map, source);
        for(SelectItem elem: _pq.getSelectItems()){
            elem.accept(selectVisitor);
        }
View Full Code Here

    //copied from queryPlans.TPCH7, but simplified, only ancestor DataSourceComponent names are used
    private EquiJoinComponent createTPCH7_LSNSubplan() {
        //not used, but has to be initialized
        String dataPath = ""; String extension = "";
        QueryPlan queryPlan = new QueryPlan();

        DataSourceComponent relationSupplier = new DataSourceComponent(
                "SUPPLIER",
                dataPath + "supplier" + extension,
                queryPlan);
View Full Code Here

TOP

Related Classes of plan_runner.query_plans.QueryPlan

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.