Versions Compared

Key

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

...

  • It's concise and is a builder kind of interface which is more descriptive when applied to TimeWindowedKStream  and SessionWindowedKStream 
  • In option 2, I feel WindowConfig  should already be part of Window. Then in option 3, I feel EMIT_FINAL and EMIT_EAGER  should be applied to Stream  instead of Window 

The drawbacks of option 1 and 2 are:

  • Not every type windows can support emit final. For example, UnlimitedWindows  shouldn't support emit final.