def test_plan_merge(self):
        print '\n\n\n Running Merge plan test'
        with open('../queries/3.json') as json_data:
            query = json.loads(json_data.read())
        query_data_obj = query_data.create_query_data(query)

        with open('../plans/double_plan_3_merge.json') as json_data:
            query_plan = json.loads(json_data.read())

        query_executor = QueryExecutor()
        query_executor.execute_query(query_data_obj, query_plan)
Ejemplo n.º 2
0
    def test_query_1(self):

        with open('../queries/4.json') as json_data:
            query = json.loads(json_data.read())
        start = timer()
        query_data_obj = query_data.create_query_data(query)
        query_planner = QueryPlanner()
        query_plan = query_planner.eval_query(query_data_obj)
        print '\nPlan : ' + str(query_plan)
        query_executor = QueryExecutor()
        query_executor.execute_query(query_data_obj, query_plan)
        end = timer()
        print('\n\nQuery run time : ' + str(end - start))
Ejemplo n.º 3
0
 def test_query_1(self):
     with open('../queries/1.json') as json_data:
         query = json.loads(json_data.read())
     query_data_obj = query_data.create_query_data(query)
     filter_selector = FilterSelector()
     print "5 " + str(filter_selector.eval_query(query_data_obj))
Ejemplo n.º 4
0
 def test_query_1(self):
     with open('../queries/3.json') as json_data:
         query = json.loads(json_data.read())
     query_data_obj = query_data.create_query_data(query)
     query_planner = QueryPlanner()
     print '\n\n query_plan : ' + str(query_planner.eval_query(query_data_obj))