I have a FlinkKafkaConsumer defined as follows FlinkKafkaConsumer[String]("topic", new SimpleStringSchema(), properties)
and I'm working with event time by using setStreamTimeCharacteristic(TimeCharacteristic.EventTime)
.
Now I want to assign a periodic watermark with the function assignTimestampsAndWatermarks
, but I don't know what I should pass to that function since in the documentation the example of this function receive an element of type MyType
with a getCreationTime()
and my consumer is of type String.
Is it possible to assign event time in this situation?
EDIT: The time I would want to use as event time is the time each register was stored in Kafka.