public class WordMedian
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.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) |
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.