Skip to content

Instantly share code, notes, and snippets.

@novakov-alexey-zz
Last active November 20, 2018 20:16
Show Gist options
  • Save novakov-alexey-zz/08a125a151cad8b1d46809c75fd26a28 to your computer and use it in GitHub Desktop.
Save novakov-alexey-zz/08a125a151cad8b1d46809c75fd26a28 to your computer and use it in GitHub Desktop.
case class Observation(time: Long, value: Double)
// contains 4 additional columns we need to calculate for each event
case class WindowStats(sum: Double, min: Double, max: Double, count: Int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment