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)
Execute the command with the given arguments.
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
Copyright © 2013 Apache Software Foundation. All rights reserved.