private byte[] getSumValue(String tableName, Field field, Scan scan) throws Throwable {
switch (field.getType()) {
case INT32: {
Integer sum = aggregationClient
.sum(Bytes.toBytes(tableName), new IntegerColumnInterpreter(),
scan, Bytes.toBytes(field.getName()));
return Bytes.toBytes(sum == null ? 0 : sum.intValue());
}
case INT64: {
Long sum = aggregationClient