public class WordMedian extends Configured implements Tool
Modifier and Type | Class and Description |
---|---|
static class |
WordMedian.WordMedianMapper
Maps words from line of text into a key-value pair; the length of the word
as the key, and 1 as the value.
|
static class |
WordMedian.WordMedianReducer
Performs integer summation of all the values for each key.
|
Constructor and Description |
---|
WordMedian() |
Modifier and Type | Method and Description |
---|---|
double |
getMedian() |
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.