A simple flink job that transforms a data stream and a control stream into an output stream.
A simple flink job that interleaves a data stream and a control stream and creates a source of data records that occur during active control periods.
A simple flink job that interleaves a data stream and a control stream and creates a source of data records that occur during active control periods.
As an example, let on
represent an active control, off
represent an inactive control,
and d
to represent data elements. Then the following stream:
d1 d2 on d3 d4 d5 off d6 d7
would output d3 d4 d5
.
the data type
the control type
the output stream element type
An abstract flink job to transform on a stream of events from an algebraic data type (ADT).
An abstract flink job to transform on a stream of events from an algebraic data type (ADT).
The type of input stream elements
The type of output stream elements
A simple flink job that transforms a data stream and a control stream into an output stream. This uses flink's CEP library to match sequences of data elements that fall between control elements that are alternately active and inactive. As an example, let
on
represent an active control,off
represent an inactive control, andd
to represent data elements. Then the following streamd1 d2 on d3 d4 d5 off d6 d7
would output one DataControlPeriod object with a start time of the timestamp ofon
, and end time of the timestamp ofoff
and the elementsd3, d4, d5
as the payload.the data type
the control type
the output stream element type