scan.setFilter(rowFilters);
setSelectedColumns(report, scan);
logger.debug("Scan object is " + scan);
if (report.isAggregateReport()) {
//means we have to aggregate
GroupingAggregationBatch batchCall = new GroupingAggregationBatch(scan, report);
GroupingAggregationBatchCallback callback = new GroupingAggregationBatchCallback(report);
try {
hTable.coprocessorExec(
GroupingAggregationProtocol.class, scan.getStartRow(), scan.getStopRow(),
batchCall, callback);