org.apache.nutch.indexer
Class IndexerJob.IndexerMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<K1,V1,K2,V2>
org.apache.gora.mapreduce.GoraMapper<String,WebPage,String,NutchDocument>
org.apache.nutch.indexer.IndexerJob.IndexerMapper
- Enclosing class:
- IndexerJob
public static class IndexerJob.IndexerMapper
- extends org.apache.gora.mapreduce.GoraMapper<String,WebPage,String,NutchDocument>
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)
|
void |
map(String key,
WebPage page,
org.apache.hadoop.mapreduce.Mapper.Context context)
|
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
|
Methods inherited from class org.apache.gora.mapreduce.GoraMapper |
initMapperJob, initMapperJob, initMapperJob, initMapperJob, initMapperJob |
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 |
indexUtil
public IndexUtil indexUtil
store
public org.apache.gora.store.DataStore<String,WebPage> store
batchId
protected org.apache.avro.util.Utf8 batchId
IndexerJob.IndexerMapper
public IndexerJob.IndexerMapper()
setup
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException
- Overrides:
setup
in class org.apache.hadoop.mapreduce.Mapper<String,WebPage,String,NutchDocument>
- Throws:
IOException
cleanup
protected void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
- Overrides:
cleanup
in class org.apache.hadoop.mapreduce.Mapper<String,WebPage,String,NutchDocument>
- Throws:
IOException
InterruptedException
map
public void map(String key,
WebPage page,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
- Overrides:
map
in class org.apache.hadoop.mapreduce.Mapper<String,WebPage,String,NutchDocument>
- Throws:
IOException
InterruptedException
Copyright © 2013 The Apache Software Foundation