@Internal public static final class DistinctOperator.DistinctFunction<T> extends Object implements GroupReduceFunction<T,T>, GroupCombineFunction<T,T>
Constructor and Description |
---|
DistinctFunction() |
Modifier and Type | Method and Description |
---|---|
void |
combine(Iterable<T> values,
Collector<T> out)
The combine method, called (potentially multiple timed) with subgroups of elements.
|
void |
reduce(Iterable<T> values,
Collector<T> out)
The reduce method.
|
public void reduce(Iterable<T> values, Collector<T> out)
GroupReduceFunction
reduce
in interface GroupReduceFunction<T,T>
values
- All records that belong to the given input key.out
- The collector to hand results to.public void combine(Iterable<T> values, Collector<T> out)
GroupCombineFunction
combine
in interface GroupCombineFunction<T,T>
values
- The elements to be combined.out
- The collector to use to return values from the function.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.