[doc] Add ProcessWindowFunction to side output doc
Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/4f8d01fb Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/4f8d01fb Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/4f8d01fb Branch: refs/heads/master Commit: 4f8d01fba49664c4557083b599f42f56a0e665a5 Parents: 39682c4 Author: Bowen Li <[email protected]> Authored: Thu Oct 12 11:11:27 2017 +0200 Committer: Aljoscha Krettek <[email protected]> Committed: Thu Oct 12 11:13:06 2017 +0200 ---------------------------------------------------------------------- docs/dev/stream/side_output.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/4f8d01fb/docs/dev/stream/side_output.md ---------------------------------------------------------------------- diff --git a/docs/dev/stream/side_output.md b/docs/dev/stream/side_output.md index 0f144d4..39ead7e 100644 --- a/docs/dev/stream/side_output.md +++ b/docs/dev/stream/side_output.md @@ -55,9 +55,15 @@ val outputTag = OutputTag[String]("side-output") Notice how the `OutputTag` is typed according to the type of elements that the side output stream contains. -Emitting data to a side output is only possible from within a -[ProcessFunction]({{ site.baseurl }}/dev/stream/operators/process_function.html). You can use the `Context` parameter -to emit data to a side output identified by an `OutputTag`: +Emitting data to a side output is possible from the following functions: + +- [ProcessFunction]({{ site.baseurl }}/dev/stream/operators/process_function.html) +- [ProcessWindowFunction]({{ site.baseurl }}/dev/windows.html#processwindowfunction) +- ProcessAllWindowFunction + +You can use the `Context` parameter, which is exposed to users in the above functions, to emit +data to a side output identified by an `OutputTag`. Here is an example of emitting side output +data from a `ProcessFunction`: <div class="codetabs" markdown="1"> <div data-lang="java" markdown="1">
