IN
- OUT
- @PublicEvolving public abstract class GroupReduceIterator<IN,OUT> extends RichGroupReduceFunction<IN,OUT>
Iterable
.Constructor and Description |
---|
GroupReduceIterator() |
Modifier and Type | Method and Description |
---|---|
void |
reduce(Iterable<IN> values,
Collector<OUT> out)
The reduce method.
|
abstract Iterator<OUT> |
reduceGroup(Iterable<IN> values) |
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
public abstract Iterator<OUT> reduceGroup(Iterable<IN> values) throws Exception
Exception
public final void reduce(Iterable<IN> values, Collector<OUT> out) throws Exception
GroupReduceFunction
reduce
in interface GroupReduceFunction<IN,OUT>
reduce
in class RichGroupReduceFunction<IN,OUT>
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–2024 The Apache Software Foundation. All rights reserved.