Package org.apache.flink.cep.operator
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 Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
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:
comparein interfaceComparator<IN>
-