public class ReducerWrapper<KeyIn,ValueIn,KeyOut,ValueOut> extends Object implements SmartReducer<KeyIn,ValueIn,KeyOut,ValueOut>
| Constructor and Description |
|---|
ReducerWrapper(org.apache.hadoop.mapred.Reducer<KeyIn,ValueIn,KeyOut,ValueOut> reducer,
Class<KeyIn> keyIn,
Class<ValueIn> valueIn,
Class<KeyOut> keyOut,
Class<ValueOut> valueOut) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(org.apache.hadoop.mapred.JobConf arg0) |
Class<KeyIn> |
getKeyInType() |
Class<KeyOut> |
getKeyOutType() |
Class<ValueIn> |
getValueInType() |
Class<ValueOut> |
getValueOutType() |
void |
reduce(KeyIn arg0,
Iterator<ValueIn> arg1,
org.apache.hadoop.mapred.OutputCollector<KeyOut,ValueOut> arg2,
org.apache.hadoop.mapred.Reporter arg3) |
public void reduce(KeyIn arg0, Iterator<ValueIn> arg1, org.apache.hadoop.mapred.OutputCollector<KeyOut,ValueOut> arg2, org.apache.hadoop.mapred.Reporter arg3) throws IOException
reduce in interface org.apache.hadoop.mapred.Reducer<KeyIn,ValueIn,KeyOut,ValueOut>IOExceptionpublic void configure(org.apache.hadoop.mapred.JobConf arg0)
configure in interface org.apache.hadoop.mapred.JobConfigurablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2020. All rights reserved.