Skip to content

Instantly share code, notes, and snippets.

@PierreZ
Last active January 3, 2019 16:20
final DataStream<Tuple4<PlanIdentifier, Alert, Plan, Operation>> alertStream =
// Partitioning Stream per AlertIdentifier
cleanedAlertsStream.keyBy(0)
// Applying a Map Operation which is setting since when an alert is triggered
.map(new SetSinceOnSelector())
.name("setting-since-on-selector").uid("setting-since-on-selector")
// Partitioning again Stream per AlertIdentifier
.keyBy(0)
// Applying another Map Operation which is setting State and Trend
.map(new SetStateAndTrend())
.name("setting-state").uid("setting-state");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment