@Override
    public Date deserialize(String text) throws ParseException {

        switch (format) {
            case "MICROS": {
                long micros = Long.parseLong(text.trim());
                long millis = TimeUnit.MICROSECONDS.toMillis(micros);
                return new Date(millis);
            }
            case "MILLIS": {
                long millis = Long.parseLong(text.trim());
                return new Date(millis);
            }
            case "SECONDS": {
                long seconds = Long.parseLong(text.trim());
                long millis = TimeUnit.SECONDS.toMillis(seconds);
                return new Date(millis);
            }
            default: {
                java.util.Date date = FastDateFormat.getInstance(format).parse(text.trim());
                return new Date(date.getTime());
            }
        }
    }
The format information for {@link Date}s.
inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/DateFormatInfo.java