@Override
  public int getSerializedSize(boolean withTags) {
    if (withTags) {
      return this.length;
    }
    return getKeyLength() + this.getValueLength() + KeyValue.KEYVALUE_INFRASTRUCTURE_SIZE;
  }
This Cell is an implementation of {@link ByteBufferExtendedCell} where the data resides in off
heap/ on heap ByteBuffer
hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java