public static long getTotalSizeOfCells(Result result) {
    long size = 0;
    if (result.isEmpty()) {
      return size;
    }
    for (Cell c : result.rawCells()) {
      size += c.heapSize();
    }
    return size;
  }
Get total size of raw cells
@return Total size.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java