com.nextbreakpoint.flink.dummies.SampledTemperatureTimestampAssigner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.nextbreakpoint.flink.dummies Show documentation
Show all versions of com.nextbreakpoint.flink.dummies Show documentation
Collection of dummy jobs for Apache Flink
The newest version!
/*
* This file is part of Flink Dummies
* https://github.com/nextbreakpoint/flink-dummies
*/
package com.nextbreakpoint.flink.dummies;
import org.apache.flink.api.common.eventtime.SerializableTimestampAssigner;
public class SampledTemperatureTimestampAssigner implements SerializableTimestampAssigner {
@Override
public long extractTimestamp(SampledTemperature element, long recordTimestamp) {
return element.getTimestamp().toEpochMilli();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy