public static long getKeyValueDataStructureSize(int rlength, int flength, int qlength,
    int vlength, int tagsLength) {
    if (tagsLength == 0) {
      return getKeyValueDataStructureSize(rlength, flength, qlength, vlength);
    }
    return KeyValue.KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE
      + getKeyDataStructureSize(rlength, flength, qlength) + vlength + tagsLength;
  }
Computes the number of bytes that a <code>KeyValue</code> instance with the provided
characteristics would take up for its underlying data structure.
@param rlength    row length
@param flength    family length
@param qlength    qualifier length
@param vlength    value length
@param tagsLength total length of the tags
@return the <code>KeyValue</code> data structure length
hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java