org.apache.accumulo.examples.wikisearch.ingest
Class WikipediaPartitionedMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,ArticleExtractor.Article,org.apache.hadoop.io.Text,Mutation>
org.apache.accumulo.examples.wikisearch.ingest.WikipediaPartitionedMapper
public class WikipediaPartitionedMapper
- extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,ArticleExtractor.Article,org.apache.hadoop.io.Text,Mutation>
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
Method Summary |
protected void |
cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
|
protected void |
map(org.apache.hadoop.io.Text language,
ArticleExtractor.Article article,
org.apache.hadoop.mapreduce.Mapper.Context context)
|
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
|
Methods inherited from class org.apache.hadoop.mapreduce.Mapper |
run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTF8
public static final Charset UTF8
DOCUMENT_COLUMN_FAMILY
public static final String DOCUMENT_COLUMN_FAMILY
- See Also:
- Constant Field Values
METADATA_EVENT_COLUMN_FAMILY
public static final String METADATA_EVENT_COLUMN_FAMILY
- See Also:
- Constant Field Values
METADATA_INDEX_COLUMN_FAMILY
public static final String METADATA_INDEX_COLUMN_FAMILY
- See Also:
- Constant Field Values
TOKENS_FIELD_NAME
public static final String TOKENS_FIELD_NAME
- See Also:
- Constant Field Values
WikipediaPartitionedMapper
public WikipediaPartitionedMapper()
setup
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
- Overrides:
setup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,ArticleExtractor.Article,org.apache.hadoop.io.Text,Mutation>
cleanup
protected void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
- Overrides:
cleanup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,ArticleExtractor.Article,org.apache.hadoop.io.Text,Mutation>
- Throws:
IOException
InterruptedException
map
protected void map(org.apache.hadoop.io.Text language,
ArticleExtractor.Article article,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
- Overrides:
map
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,ArticleExtractor.Article,org.apache.hadoop.io.Text,Mutation>
- Throws:
IOException
InterruptedException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.