Big data Flink (seventy-four): SQL sliding window (HOP)

Article directory

SQL Sliding Window (HOP)


SQL Sliding Window (HOP)

Sliding window definition : A sliding window is also a window in which elements are assigned to a fixed length. Like the rolling window function, there is also the concept of window size. The difference is that the sliding window has another parameter to control the frequency of window calculation (the step size of the sliding window). Therefore, if the sliding step size is smaller than the window size, each window between sliding windows can overlap. In this case, a piece of data will be distributed among multiple windows. For example, there is a window size of 10 minutes with a sliding step of 5 minutes. In this way, a window will be divided every 5 minutes, and the data contained in this window is the data in the past 10 minutes, as shown in the figure below. </

Guess you like

Origin blog.csdn.net/xiaoweite1/article/details/132725698