提交 68924031 编写于 作者: M mbalassi

[streaming] [api-breaking] Changed returntype of WindowedDataStream's mapWindow

For a more consistent behaviour.
上级 0078c44e
......@@ -349,7 +349,7 @@ public class WindowedDataStream<OUT> {
* The function that will be applied to the windows.
* @return The transformed DataStream
*/
public <R> WindowedDataStream<R> mapWindow(WindowMapFunction<OUT, R> windowMapFunction) {
public <R> DiscretizedStream<R> mapWindow(WindowMapFunction<OUT, R> windowMapFunction) {
return discretize(WindowTransformation.MAPWINDOW.with(clean(windowMapFunction)),
getWindowBuffer(WindowTransformation.MAPWINDOW)).mapWindow(windowMapFunction);
}
......@@ -372,7 +372,7 @@ public class WindowedDataStream<OUT> {
* The output type of the operator.
* @return The transformed DataStream
*/
public <R> WindowedDataStream<R> mapWindow(WindowMapFunction<OUT, R> windowMapFunction,
public <R> DiscretizedStream<R> mapWindow(WindowMapFunction<OUT, R> windowMapFunction,
TypeInformation<R> outType) {
return discretize(WindowTransformation.MAPWINDOW.with(windowMapFunction),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册