public static class NodeDumper.Sorter.SorterReducer extends Reducer<FloatWritable,Text,Text,FloatWritable>
Reducer.Context| Constructor and Description |
|---|
SorterReducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
reduce(FloatWritable key,
Iterable<Text> values,
Reducer.Context context) |
void |
setup(Reducer.Context context)
Configures the reducer, sets the flag for type of content and the topN number
if any.
|
public void setup(Reducer.Context context)
setup in class Reducer<FloatWritable,Text,Text,FloatWritable>public void reduce(FloatWritable key, Iterable<Text> values, Reducer.Context context) throws IOException, InterruptedException
reduce in class Reducer<FloatWritable,Text,Text,FloatWritable>IOExceptionInterruptedExceptionCopyright © 2021 The Apache Software Foundation