Last active
March 1, 2017 21:47
-
-
Save alexvanboxel/eb0bf067f59b2b965cc1e49a9c1cdef5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return input.apply("UserSessionWindows", | |
Window.<Event>into(Sessions.withGapDuration(Duration.standardMinutes(20))) | |
.withAllowedLateness(Duration.standardHours(1))) | |
.apply("SessionSwitch", ParDo.of(new SessionSwitchFn())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment