pyflink.datastream.data_stream.AllWindowedStream.side_output_late_data#
- AllWindowedStream.side_output_late_data(output_tag: pyflink.datastream.output_tag.OutputTag) pyflink.datastream.data_stream.AllWindowedStream [source]#
Send late arriving data to the side output identified by the given
OutputTag
. Data is considered late after the watermark has passed the end of the window plus the allowed lateness set usingallowed_lateness()
.You can get the stream of late data using
get_side_output()
on theDataStream
resulting from the windowed operation with the sameOutputTag
.Example:
>>> tag = OutputTag("late-data", Types.TUPLE([Types.INT(), Types.STRING()])) >>> main_stream = ds.window_all(TumblingEventTimeWindows.of(Time.seconds(5))) \ ... .side_output_late_data(tag) \ ... .process(MyProcessAllWindowFunction(), ... Types.TUPLE([Types.LONG(), Types.LONG(), Types.INT()])) >>> late_stream = main_stream.get_side_output(tag)