I have an RDD with different events sorted by date, basically I\'m trying to check if two events occur one after the other.
For that I have a ReduceByKey function tha