Slide 29
Slide 29 text
jOOλ – Window Functions
Seq.of(tuple("2016-09-27", new BigDecimal("-5")),
tuple("2016-09-20", new BigDecimal("100")),
tuple("2016-09-11", new BigDecimal("-20")))
.window(comparing(t -> t.v1), Long.MIN_VALUE, 0)
(2016-09-11, -20), (2016-09-20, 100), (2016-09-27, -5)
2016-09-11 -> (2016-09-11, -20)
2016-09-20 -> (2016-09-11, -20), (2016-09-20, 100)
2016-09-27 -> (2016-09-11, -20), (2016-09-20, 100), (2016-09-27, -5)
10.05.2018 DevoxxUK / Functional Java (Rabea Gransberger @rgransberger)
Window