GroupingAggregationProtocol.class, scan.getStartRow(), scan.getStopRow(),
batchCall, callback);
}
catch(Throwable e) {
e.printStackTrace();
throw new CruxException("Error executing query", e);
}
return new CruxScannerListImpl(callback.getAggregates());
}
else {
ResultScanner resultScanner = hTable.getScanner(scan);
scanner = new CruxScannerResultScannerImpl(resultScanner, report);
}
}
} catch (Exception e) {
e.printStackTrace();
throw new CruxException(e);
}
return scanner;
}