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<StreamRecord<IN>>
public class StreamRecordComparator<IN> extends Object implements Comparator<StreamRecord<IN>>, Serializable
Compares twoStreamRecord
s based on their timestamp.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreamRecordComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(StreamRecord<IN> o1, StreamRecord<IN> o2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(StreamRecord<IN> o1, StreamRecord<IN> o2)
- Specified by:
compare
in interfaceComparator<IN>
-
-