// query.addMeasure("impCnt").addMeasure("click");
// query.addClosedSlice("dim1",ids[0],ids[1]).addGroupBy("dim1");
// query.addHalfOpenSlice("impressionTime", startTime, endTime);
AggregateResultSet rs = query.execute();
closeables.addFirst(rs);
while (rs.hasNext()) {
rs.next();
PreparedAggregateResult ar = (PreparedAggregateResult) rs.current();