I have a data stream that consists of data like this.
{Student, Class, CurrentScore}
I want to use a sliding window to calculate the statistic of these events:
spark.readStream(...).withColumn("processingTime",..).
window(col("processingTime"), "30 minutes", "5 minutes"), col("class"))
But now i want to take out the top 3 students by each class in this window, but the Structured Streaming apparently does not support rank()
How can I solve this problem ?