*
* @param record
* @return
*/
private Map<String, Object> groupByRecord(ProcessDataRecord record) {
GroupByClause clause = stmt.getGroupByClause();
if (clause == null) {
return newLinkedHashMap();
} else {
Iterable<String> groupByKeys = clause.itemsInStr();
Map<String, Object> groupByRecord = newLinkedHashMap();
for (String propertyName : groupByKeys) {
groupByRecord.put(propertyName, record.lookup(propertyName).getPayload());