public class IdentityGroupReduce<IN> extends Object implements GroupReduceFunction<IN,IN>
Constructor and Description |
---|
IdentityGroupReduce() |
Modifier and Type | Method and Description |
---|---|
void |
reduce(Iterable<IN> values,
Collector<IN> out)
The reduce method.
|
public final void reduce(Iterable<IN> values, Collector<IN> out) throws Exception
GroupReduceFunction
reduce
in interface GroupReduceFunction<IN,IN>
values
- All records that belong to the given input key.out
- The collector to hand results to.Exception
- This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.