public static class WordStandardDeviation.WordStandardDeviationReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>
| Constructor and Description |
|---|
WordStandardDeviation.WordStandardDeviationReducer() |
public WordStandardDeviation.WordStandardDeviationReducer()
public void reduce(org.apache.hadoop.io.Text key,
Iterable<org.apache.hadoop.io.LongWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>key - This will be one of 2 constants: LENGTH_STR, COUNT_STR, or
SQUARE_STR.values - This will be an iterator of all the values associated with that
key.IOExceptionInterruptedExceptionCopyright © 2013 Apache Software Foundation. All Rights Reserved.