public int compareTo(HiveIntervalDayTime intervalDayTime, int elementNum) {
    return intervalDayTime.compareTo(asScratchIntervalDayTime(elementNum));
  }
Compare HiveIntervalDayTime to row.
We assume the entry has already been NULL checked and isRepeated adjusted.
@param intervalDayTime
@param elementNum
@return -1, 0, 1 standard compareTo values.
storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/IntervalDayTimeColumnVector.java