public static int totalLengthWithMvccVersion(final Iterable<? extends KeyValue> kvs,
    final boolean includeMvccVersion) {
    int length = 0;
    for (KeyValue kv : IterableUtils.emptyIfNull(kvs)) {
      length += lengthWithMvccVersion(kv, includeMvccVersion);
    }
    return length;
  }
Returns number of bytes this cell's key part would have been used if serialized as in
{@link KeyValue}. Key includes rowkey, family, qualifier, timestamp and type.
@return the key length
hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValueUtil.java