org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Toolpublic class WordStandardDeviation
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Class | Description |
|---|---|---|
static class |
WordStandardDeviation.WordStandardDeviationMapper |
Maps words from line of text into 3 key-value pairs; one key-value pair for
counting the word, one for counting its length, and one for counting the
square of its length.
|
static class |
WordStandardDeviation.WordStandardDeviationReducer |
Performs integer summation of all the values for each key.
|
| Constructor | Description |
|---|---|
WordStandardDeviation() |
| Modifier and Type | Method | Description |
|---|---|---|
double |
getStandardDeviation() |
|
static void |
main(java.lang.String[] args) |
|
int |
run(java.lang.String[] args) |
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic int run(java.lang.String[] args)
throws java.lang.Exception
run in interface org.apache.hadoop.util.Tooljava.lang.Exceptionpublic double getStandardDeviation()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.