Class StreamRecordComparator<IN>

java.lang.Object
org.apache.flink.cep.operator.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:
  • Constructor Details

    • StreamRecordComparator

      public StreamRecordComparator()
  • Method Details

    • 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>