public class RichCombineToGroupCombineWrapper<IN,OUT,F extends RichGroupReduceFunction<IN,OUT> & CombineFunction<IN,IN>> extends RichGroupCombineFunction<IN,IN> implements GroupReduceFunction<IN,OUT>
CombineFunction and GroupReduceFunction interfaces
and makes it look like a function that implements GroupCombineFunction and GroupReduceFunction to the runtime.| Constructor and Description |
|---|
RichCombineToGroupCombineWrapper(F wrappedFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
combine(Iterable<IN> values,
Collector<IN> out) |
void |
open(Configuration config) |
void |
reduce(Iterable<IN> values,
Collector<OUT> out) |
close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContextpublic RichCombineToGroupCombineWrapper(F wrappedFunction)
public void open(Configuration config) throws Exception
open in interface RichFunctionopen in class AbstractRichFunctionExceptionpublic void combine(Iterable<IN> values, Collector<IN> out) throws Exception
combine in interface GroupCombineFunction<IN,IN>combine in class RichGroupCombineFunction<IN,IN>ExceptionCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.