Class FirstReducer<T>
- java.lang.Object
-
- org.apache.flink.api.java.functions.FirstReducer<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.GroupCombineFunction<T,T>,org.apache.flink.api.common.functions.GroupReduceFunction<T,T>
@Internal public class FirstReducer<T> extends Object implements org.apache.flink.api.common.functions.GroupReduceFunction<T,T>, org.apache.flink.api.common.functions.GroupCombineFunction<T,T>
Reducer that only emits the first N elements in a group.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FirstReducer(int n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcombine(Iterable<T> values, org.apache.flink.util.Collector<T> out)voidreduce(Iterable<T> values, org.apache.flink.util.Collector<T> out)
-