use of com.sap.hadoop.windowing.io.WindowingInput in project SQLWindowing by hbutani.
the class LocalExecutor method execute.
public void execute(QueryDef qDef, WindowingShell wShell) throws WindowingException {
QueryTranslationInfo tInfo = qDef.getTranslationInfo();
HiveTableSpec hvTblSpec = qDef.getInput().getHiveTableSpec();
WindowingInput wIn = IOUtils.createTableWindowingInput(hvTblSpec.getDbName(), hvTblSpec.getTableName(), tInfo.getHiveCfg());
// Partition p = IOUtils.createPartition(partClassName, partMemSize, wIn);
PartitionsIterator partsItr = new PartitionsIterator(wIn, qDef);
while (partsItr.hasNext()) {
Partition p = partsItr.next();
Partition oP = executeChain(qDef, p);
// IOUtils.dumpPartition(oP, System.out);
executeSelectList(qDef, oP, new SysOutRS(out));
}
}
Aggregations