public static void compressQualifier(OutputStream out, Cell cell, Dictionary dict)
    throws IOException {
    if (cell instanceof ByteBufferExtendedCell) {
      Dictionary.write(out, ((ByteBufferExtendedCell) cell).getQualifierByteBuffer(),
        ((ByteBufferExtendedCell) cell).getQualifierPosition(), cell.getQualifierLength(), dict);
    } else {
      Dictionary.write(out, cell.getQualifierArray(), cell.getQualifierOffset(),
        cell.getQualifierLength(), dict);
    }
  }
Compresses the tags to the given outputstream using the TagcompressionContext
@param out                   the outputstream to which the compression should happen
@param cell                  the cell which has tags
@param tagCompressionContext the TagCompressionContext
@throws IOException can throw IOException if the compression encounters issue
hbase-common/src/main/java/org/apache/hadoop/hbase/PrivateCellUtil.java