@Internal public class ReduceIterableWindowFunction<K,W extends Window,T> extends Object implements WindowFunction<T,T,K,W>
| Constructor and Description |
|---|
ReduceIterableWindowFunction(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(K k,
W window,
Iterable<T> input,
org.apache.flink.util.Collector<T> out)
Evaluates the window and outputs none or several elements.
|
public ReduceIterableWindowFunction(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction)
public void apply(K k, W window, Iterable<T> input, org.apache.flink.util.Collector<T> out) throws Exception
WindowFunctionapply in interface WindowFunction<T,T,K,W extends Window>k - The key for which this window is evaluated.window - The window that is being evaluated.input - The elements in the window being evaluated.out - A collector for emitting elements.Exception - The function may throw exceptions to fail the program and trigger recovery.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.