@Public public class PythonWindowedStream<W extends org.apache.flink.streaming.api.windowing.windows.Window> extends Object
WindowedStream.
A PythonWindowedStream represents a data stream where elements are grouped by
key, and for each key, the stream of elements is split into windows based on a
WindowAssigner. Window emission
is triggered based on a Trigger.
| Modifier and Type | Method and Description |
|---|---|
PythonSingleOutputStreamOperator |
apply(org.apache.flink.streaming.api.functions.windowing.WindowFunction<org.python.core.PyObject,Object,Object,W> fun)
A thin wrapper layer over
WindowedStream.apply(WindowFunction). |
PythonSingleOutputStreamOperator |
reduce(org.apache.flink.api.common.functions.ReduceFunction<org.python.core.PyObject> fun)
A thin wrapper layer over
WindowedStream.reduce(org.apache.flink.api.common.functions.ReduceFunction). |
public PythonSingleOutputStreamOperator reduce(org.apache.flink.api.common.functions.ReduceFunction<org.python.core.PyObject> fun) throws IOException
WindowedStream.reduce(org.apache.flink.api.common.functions.ReduceFunction).fun - The reduce function.IOExceptionpublic PythonSingleOutputStreamOperator apply(org.apache.flink.streaming.api.functions.windowing.WindowFunction<org.python.core.PyObject,Object,Object,W> fun) throws IOException
WindowedStream.apply(WindowFunction).fun - The window function.IOExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.