Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We will be introducing a new type of Windows that always computes the current window based on the current stream time instead of event timestamp:

Info

Note: I really don't like the name I cam up with StreamTimeWindows... if anyone has a better name in mind please suggest one!


Code Block
public final class StreamTimeWindows extends Windows<TimeWindow> {
		
		/**
		 * Return a window definition with the given window size.
		 * <p> 
		 * This represents stream time window semantics, which are fixed-size,
		 * gap-less, non-overlapping windows. Static windows use the current
		 * stream time when determining which window an event fits into instead
		 * of the event time (as the other window types use).
		 * <p>
		 * Note that stream time windows will always accept late arriving data, and
		 * should only be used in situations where the ordering of data is not
		 * necessarily important to the semantics of your application.
		 */
		public static StreamTimeWindows ofSize(final Duration size) { ... }
    
}

...