@Public public class PythonKeyedStream extends PythonDataStream<org.apache.flink.streaming.api.datastream.KeyedStream<org.python.core.PyObject,PyKey>>
KeyedStream.
A PythonKeyedStream represents a PythonDataStream on which operator state is
partitioned by key using a provided KeySelector.
stream| Modifier and Type | Method and Description |
|---|---|
PythonWindowedStream |
count_window(long size,
long slide)
A thin wrapper layer over
KeyedStream.countWindow(long, long). |
PythonSingleOutputStreamOperator |
reduce(org.apache.flink.api.common.functions.ReduceFunction<org.python.core.PyObject> reducer)
A thin wrapper layer over
KeyedStream.reduce(ReduceFunction). |
PythonWindowedStream |
time_window(org.apache.flink.streaming.api.windowing.time.Time size)
A thin wrapper layer over
KeyedStream.timeWindow(Time). |
PythonWindowedStream |
time_window(org.apache.flink.streaming.api.windowing.time.Time size,
org.apache.flink.streaming.api.windowing.time.Time slide)
A thin wrapper layer over
KeyedStream.timeWindow(Time, Time). |
add_sink, filter, flat_map, iterate, iterate, key_by, map, output, split, union, write_as_text, write_as_text, write_to_socketpublic PythonWindowedStream count_window(long size, long slide)
KeyedStream.countWindow(long, long).size - The size of the windows in number of elements.slide - The slide interval in number of elements.PythonWindowedStreampublic PythonWindowedStream time_window(org.apache.flink.streaming.api.windowing.time.Time size)
KeyedStream.timeWindow(Time).size - The size of the window.PythonWindowedStreampublic PythonWindowedStream time_window(org.apache.flink.streaming.api.windowing.time.Time size, org.apache.flink.streaming.api.windowing.time.Time slide)
KeyedStream.timeWindow(Time, Time).size - The size of the window.PythonWindowedStreampublic PythonSingleOutputStreamOperator reduce(org.apache.flink.api.common.functions.ReduceFunction<org.python.core.PyObject> reducer) throws IOException
KeyedStream.reduce(ReduceFunction).reducer - The ReduceFunction that will be called for every
element of the input values with the same key.IOExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.