Search in sources :

Example 1 with WindowingInput

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));
    }
}
Also used : QueryTranslationInfo(com.sap.hadoop.windowing.query2.translate.QueryTranslationInfo) HiveTableSpec(com.sap.hadoop.windowing.query2.specification.HiveTableSpec) WindowingInput(com.sap.hadoop.windowing.io.WindowingInput)

Aggregations

WindowingInput (com.sap.hadoop.windowing.io.WindowingInput)1 HiveTableSpec (com.sap.hadoop.windowing.query2.specification.HiveTableSpec)1 QueryTranslationInfo (com.sap.hadoop.windowing.query2.translate.QueryTranslationInfo)1