protected static void serializeText(
      RandomAccessOutput byteStream, Text t, boolean skipLengthPrefix) {
    /* write byte size of the string which is a vint */
    int length = t.getLength();
    if (!skipLengthPrefix) {
      LazyBinaryUtils.writeVInt(byteStream, length);
    }
    /* write string itself */
    byte[] data = t.getBytes();
    byteStream.write(data, 0, length);
  }
Serialize a struct object without writing the byte size. This function is
shared by both row serialization and struct serialization.

@param byteStream
         the byte stream storing the serialization data
@param fieldData
         the struct object to serialize
@param fieldOis
         the struct object inspector
@param warnedOnceNullMapKey a boolean indicating whether a warning
         has been issued once already when encountering null map keys
serde/src/java/org/apache/hadoop/hive/serde2/lazybinary/LazyBinarySerDe.java