|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
gov.llnl.ontology.mapreduce.CorpusTableMR
gov.llnl.ontology.mapreduce.stats.POSCountMR
public class POSCountMR
A map/reduce job that counts the number of occurences for each Part of Speech in a corpus.
Nested Class Summary | |
---|---|
static class |
POSCountMR.POSCountMapper
The main TableMapper that does the work. |
Nested classes/interfaces inherited from class gov.llnl.ontology.mapreduce.CorpusTableMR |
---|
CorpusTableMR.CorpusTableMapper<K,V> |
Field Summary | |
---|---|
static String |
ABOUT
A descriptive about string used in the help text. |
Fields inherited from class gov.llnl.ontology.mapreduce.CorpusTableMR |
---|
CONF_PREFIX, TABLE |
Constructor Summary | |
---|---|
POSCountMR()
|
Method Summary | |
---|---|
protected String |
jobName()
Returns a descriptive job name for this map reduce task. |
static void |
main(String[] args)
Runs the POSCountMR . |
protected Class |
mapperClass()
Returns the Class object for the Mapper task. |
protected Class |
mapperKeyClass()
Returns the Class object for the Mapper Value of this task. |
protected Class |
mapperValueClass()
Returns the Class object for the Mapper Value of this task. |
protected void |
setupReducer(String tableName,
org.apache.hadoop.mapreduce.Job job,
MRArgOptions options)
Sets up the Reducer for this job. |
protected void |
validateOptions(MRArgOptions options)
Returns true if the MRArgOptions contains a valid value for each
requried option. |
Methods inherited from class gov.llnl.ontology.mapreduce.CorpusTableMR |
---|
addOptions, run, setupConfiguration |
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf, setConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
---|
getConf, setConf |
Field Detail |
---|
public static final String ABOUT
Constructor Detail |
---|
public POSCountMR()
Method Detail |
---|
public static void main(String[] args) throws Exception
POSCountMR
.
Exception
protected void validateOptions(MRArgOptions options)
MRArgOptions
contains a valid value for each
requried option. By default, this does no validation.
validateOptions
in class CorpusTableMR
protected String jobName()
jobName
in class CorpusTableMR
protected Class mapperClass()
Class
object for the Mapper task.
mapperClass
in class CorpusTableMR
protected Class mapperKeyClass()
Class
object for the Mapper Value of this task.
mapperKeyClass
in class CorpusTableMR
protected Class mapperValueClass()
Class
object for the Mapper Value of this task.
mapperValueClass
in class CorpusTableMR
protected void setupReducer(String tableName, org.apache.hadoop.mapreduce.Job job, MRArgOptions options)
setupReducer
in class CorpusTableMR
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |