@Public public class PythonKeyedStream extends PythonDataStream<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(ReduceFunction<org.python.core.PyObject> reducer)
A thin wrapper layer over
KeyedStream.reduce(ReduceFunction) . |
PythonWindowedStream |
time_window(Time size)
A thin wrapper layer over
KeyedStream.timeWindow(Time) . |
PythonWindowedStream |
time_window(Time size,
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_socket
public 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.PythonWindowedStream
public PythonWindowedStream time_window(Time size)
KeyedStream.timeWindow(Time)
.size
- The size of the window.PythonWindowedStream
public PythonWindowedStream time_window(Time size, Time slide)
KeyedStream.timeWindow(Time, Time)
.size
- The size of the window.PythonWindowedStream
public PythonSingleOutputStreamOperator reduce(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.IOException
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.