/** * A thin wrapper layer over {@link KeyedStream#countWindow(long, long)}. * * @param size The size of the windows in number of elements. * @param slide The slide interval in number of elements. * @return The python windowed stream {@link PythonWindowedStream} */ public PythonWindowedStream count_window(long size, long slide) { return new PythonWindowedStream<GlobalWindow>(this.stream.countWindow(size, slide)); }
public static SingleOutputStreamOperator<Integer> createWindowFunction(ExecutionMode mode, DataStream<Tuple2<Integer, Integer>> input) { return input .keyBy(0) .countWindow(1) .apply(new StatefulWindowFunction(mode)) .setParallelism(4) .uid("window"); }
.countWindow(windowSize, slideSize)
.countWindow(windowSize, slideSize)