public static void writeDateToByteStream(RandomAccessOutput byteStream,
                                            DateWritableV2 date) {
    LazyBinaryUtils.writeVInt(byteStream, date.getDays());
  }
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