public class WordMean
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Modifier and Type | Class and Description |
---|---|
static class |
WordMean.WordMeanMapper
Maps words from line of text into 2 key-value pairs; one key-value pair for
counting the word, another for counting its length.
|
static class |
WordMean.WordMeanReducer
Performs integer summation of all the values for each key.
|
Constructor and Description |
---|
WordMean() |
Modifier and Type | Method and Description |
---|---|
double |
getMean()
Only valuable after run() called.
|
static void |
main(String[] args) |
int |
run(String[] args) |
Copyright © 2017 Apache Software Foundation. All Rights Reserved.