Class StreamRecordComparator<IN>

  • Type Parameters:
    IN - Type of the value field of the StreamRecord
    All Implemented Interfaces:
    Serializable, Comparator<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>>

    public class StreamRecordComparator<IN>
    extends Object
    implements Comparator<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>>, Serializable
    Compares two StreamRecords based on their timestamp.
    See Also:
    Serialized Form
    • Constructor Detail

      • StreamRecordComparator

        public StreamRecordComparator()
    • Method Detail

      • compare

        public int compare​(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN> o1,
                           org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN> o2)
        Specified by:
        compare in interface Comparator<IN>