你如何计算hbase中单行的大小?

How do you calculate the size of a single row in hbase?

我想计算出 HBase 中单行的大小。我还没有找到在线或通过任何 hbase utils 进行此操作的方法,我已经使用 hbase hfile -mbsf 来找出 Hfile 的平均行大小和其他统计信息,但我对单行的大小感到好奇。有没有人找到办法做到这一点?

我计算单条记录的大小效果很好
http://prafull-blog.blogspot.com/2012/06/how-to-calculate-record-size-of-hbase.html

Result.getTotalSizeOfCells(Result result)

long size = Result.getTotalSizeOfCells(Result result)