I am using apache flink for batch processing and I have a sorted 10 element dataset which consists of movie id and its ratings and it looks something like (movie_id, rating)