while (tblNamesIter.hasNext()) {
String src = tblNamesIter.next();
HashMap<String, ColumnInfo> fMap = inputRS.getFieldMap(src);
for (Map.Entry<String, ColumnInfo> entry : fMap.entrySet()) {
String field = entry.getKey();
ColumnInfo valueInfo = entry.getValue();
ExprNodeColumnDesc inputExpr = new ExprNodeColumnDesc(valueInfo
.getType(), valueInfo.getInternalName(), valueInfo.getTabAlias(),
valueInfo.getIsVirtualCol());
reduceValues.add(inputExpr);
if (outputRS.get(src, field) == null) {
String col = getColumnInternalName(reduceValues.size() - 1);
outputColumns.add(col);
ColumnInfo newColInfo = new ColumnInfo(Utilities.ReduceField.VALUE
.toString()
+ "." + col, valueInfo.getType(), src, valueInfo
.getIsVirtualCol(), valueInfo.isHiddenVirtualCol());
colExprMap.put(newColInfo.getInternalName(), inputExpr);
outputRS.put(src, field, newColInfo);
}
}
}