Package sql.main

Examples of sql.main.ParserMain


        assertEquals(1, copy2CCSize);
    }
   
    private static final String CONF_PATH = "../test/squall/local/";
    private NameCompGen createCG(String parserConfPath) {
        ParserMain pm = new ParserMain();
        Map map = pm.createConfig(parserConfPath);
        SQLVisitor pq = ParserUtil.parseQuery(map);
       
        NameCompGenFactory factory = new NameCompGenFactory(map, pq.getTan(), 20);
        return factory.create();
    }       
View Full Code Here


    private Map _map;
   
    public NameSelectItemsVisitorTest() {
        //create object
        String parserConfPath = "../test/squall/unit_tests/confs/0_1G_tpch7_ncl";
        ParserMain pm = new ParserMain();
        _map = pm.createConfig(parserConfPath);
        _pq = ParserUtil.parseQuery(_map);
    }
View Full Code Here

    private HashMap<String, Expression> _compNamesAndExprs = new HashMap<String, Expression>();
    private HashMap<Set<String>, Expression> _compNamesOrExprs = new HashMap<Set<String>, Expression>();   
   
    public CostParallelismAssignerTest() {     
        String parserConfPath = "../test/squall/unit_tests/confs/0_1G_tpch7_ncl";
        ParserMain pm = new ParserMain();
        Map map = pm.createConfig(parserConfPath);
        _parsedQuery = ParserUtil.parseQuery(map);
       
        Schema schema = new Schema(map);
       
        ProjGlobalCollect globalProject = new ProjGlobalCollect(_parsedQuery.getSelectItems(), _parsedQuery.getWhereExpr());
View Full Code Here

    private ProjGlobalCollect _globalProject;
   
    public ProjSchemaCreatorTest() {
        //create object
        String parserConfPath = "../test/squall/unit_tests/confs/0_1G_tpch7_ncl";
        ParserMain pm = new ParserMain();
        Map map = pm.createConfig(parserConfPath);
        _parsedQuery = ParserUtil.parseQuery(map);
       
        _schema = new Schema(map);
       
        _globalProject = new ProjGlobalCollect(_parsedQuery.getSelectItems(), _parsedQuery.getWhereExpr());
View Full Code Here

    public void testEverything() {
        LOG.info("test ProjGlobalCollect");
       
        //create object
        String parserConfPath = "../test/squall/unit_tests/confs/0_1G_tpch7_ncl";
        ParserMain pm = new ParserMain();
        Map map = pm.createConfig(parserConfPath);
        SQLVisitor parsedQuery = ParserUtil.parseQuery(map);
        ProjGlobalCollect instance = new ProjGlobalCollect(parsedQuery.getSelectItems(), parsedQuery.getWhereExpr());
        instance.process();
       
        //getting results
View Full Code Here

   
    public CostOptimizerTest() {
    }
   
    private NameCompGen createCG(String parserConfPath) {
        ParserMain pm = new ParserMain();
        _map = pm.createConfig(parserConfPath);
        _pq = ParserUtil.parseQuery(_map);
       
        NameCompGenFactory factory = new NameCompGenFactory(_map, _pq.getTan(), 20);
        return factory.create();
    }   
View Full Code Here

        return factory.create();
    }   

   
    private NameCompGen createCG(String parserConfPath, int parallelism) {
        ParserMain pm = new ParserMain();
        _map = pm.createConfig(parserConfPath);
        _pq = ParserUtil.parseQuery(_map);
       
        NameCompGenFactory factory = new NameCompGenFactory(_map, _pq.getTan(), parallelism);
        return factory.create();
    }   
View Full Code Here

TOP

Related Classes of sql.main.ParserMain

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.