public class WordMean extends Configured implements 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) |
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfCopyright © 2018 CERN. All Rights Reserved.