@OnScheduled public void setup(ProcessContext context) { super.setup(context); recordPathCache = new RecordPathCache(10); this.dateFormat = context.getProperty(DATE_FORMAT).evaluateAttributeExpressions().getValue(); if (this.dateFormat == null) { this.dateFormat = RecordFieldType.DATE.getDefaultFormat(); } this.timeFormat = context.getProperty(TIME_FORMAT).evaluateAttributeExpressions().getValue(); if (this.timeFormat == null) { this.timeFormat = RecordFieldType.TIME.getDefaultFormat(); } this.timestampFormat = context.getProperty(TIMESTAMP_FORMAT).evaluateAttributeExpressions().getValue(); if (this.timestampFormat == null) { this.timestampFormat = RecordFieldType.TIMESTAMP.getDefaultFormat(); } }
final String stringValue = DataTypeUtils.toString(coercedValue, () -> DataTypeUtils.getDateFormat(RecordFieldType.DATE.getDefaultFormat())); if (DataTypeUtils.isLongTypeCompatible(stringValue)) { LocalDate localDate = getLocalDateFromEpochTime(fieldName, coercedValue); final String stringValue = DataTypeUtils.toString(coercedValue, () -> DataTypeUtils.getDateFormat(RecordFieldType.TIMESTAMP.getDefaultFormat())); if (DataTypeUtils.isLongTypeCompatible(stringValue)) { LocalDateTime localDateTime = getLocalDateTimeFromEpochTime(fieldName, coercedValue);
final String stringValue = DataTypeUtils.toString(coercedValue, () -> DataTypeUtils.getDateFormat(RecordFieldType.DATE.getDefaultFormat())); if (DataTypeUtils.isLongTypeCompatible(stringValue)) { LocalDate localDate = getLocalDateFromEpochTime(fieldName, coercedValue); final String stringValue = DataTypeUtils.toString(coercedValue, () -> DataTypeUtils.getDateFormat(RecordFieldType.TIMESTAMP.getDefaultFormat())); if (DataTypeUtils.isLongTypeCompatible(stringValue)) { LocalDateTime localDateTime = getLocalDateTimeFromEpochTime(fieldName, coercedValue);