Search in sources :

Example 1 with QueryComponentizer

use of com.sap.hadoop.windowing.query2.translate.QueryComponentizer in project SQLWindowing by hbutani.

the class WindowingShell method execute.

public void execute(String query, QueryOutputPrinter outP) throws WindowingException {
    QuerySpec qSpec = parse(query);
    QueryDef q = translator.translate(qSpec, this);
    ArrayList<QueryDef> componentQueries;
    executor.beforeComponentization(q, this);
    QueryComponentizer qC = new QueryComponentizer(q, this);
    componentQueries = qC.componentize();
    executor.beforeExecute(q, componentQueries, this);
    try {
        for (QueryDef cqDef : componentQueries) {
            execute(cqDef, outP);
        }
    } finally {
        executor.afterExecute(q, componentQueries, this);
    }
}
Also used : QueryComponentizer(com.sap.hadoop.windowing.query2.translate.QueryComponentizer) QuerySpec(com.sap.hadoop.windowing.query2.specification.QuerySpec) QueryDef(com.sap.hadoop.windowing.query2.definition.QueryDef) HiveQueryDef(com.sap.hadoop.windowing.query2.definition.HiveQueryDef)

Aggregations

HiveQueryDef (com.sap.hadoop.windowing.query2.definition.HiveQueryDef)1 QueryDef (com.sap.hadoop.windowing.query2.definition.QueryDef)1 QuerySpec (com.sap.hadoop.windowing.query2.specification.QuerySpec)1 QueryComponentizer (com.sap.hadoop.windowing.query2.translate.QueryComponentizer)1