@Override
    public void write(Object value) {
      Date vDate = inspector.getPrimitiveJavaObject(value);
      recordConsumer.addInteger(
          defaultDateProleptic ? DateWritableV2.dateToDays(vDate) :
              CalendarUtils.convertDateToHybrid(DateWritableV2.dateToDays(vDate)));
    }
Checks that an inspector matches the category indicated as a parameter.
@param inspector The object inspector to check
@param category The category to match
@throws IllegalArgumentException if inspector does not match the category
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/write/DataWritableWriter.java