public class WordCountJob extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WordCountJob.WordFrequencyMapper
Group the tokens in memory for each chunk, write it in the cleanup step.
|
static class |
WordCountJob.WordFrequencyReducer
Group the tokens by reducing the mappers output and summing the sums for
each token.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
MIN_WORD_COUNT_KEY |
| Constructor and Description |
|---|
WordCountJob() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.mapreduce.Job |
createJob(String in,
String out,
org.apache.hadoop.conf.Configuration conf)
Creates a token frequency job.
|
static void |
main(String[] args) |
public static final String MIN_WORD_COUNT_KEY
public static org.apache.hadoop.mapreduce.Job createJob(String in, String out, org.apache.hadoop.conf.Configuration conf) throws IOException
in - the input path, may comma separate multiple paths.out - the output directory.conf - the configuration.IOExceptionCopyright © 2016. All rights reserved.