@Override
  public BigDecimal getValue(byte[] colFamily, byte[] colQualifier, Cell kv) throws IOException {
    if (kv == null || CellUtil.cloneValue(kv) == null) {
      return null;
    }
    return PrivateCellUtil.getValueAsBigDecimal(kv).setScale(2, RoundingMode.HALF_EVEN);
  }
ColumnInterpreter for doing Aggregation's with BigDecimal columns. This class is required at the
RegionServer also.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/BigDecimalColumnInterpreter.java