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);
}
}
Aggregations