public static class IndexingJob.IndexerMapper extends org.apache.gora.mapreduce.GoraMapper<java.lang.String,WebPage,java.lang.String,NutchDocument>
Mapper.Context
Modifier and Type | Field and Description |
---|---|
protected org.apache.avro.util.Utf8 |
batchId |
IndexUtil |
indexUtil |
org.apache.gora.store.DataStore<java.lang.String,WebPage> |
store |
Constructor and Description |
---|
IndexerMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(Mapper.Context context) |
void |
map(java.lang.String key,
WebPage page,
Mapper.Context context) |
void |
setup(Mapper.Context context) |
public IndexUtil indexUtil
public org.apache.gora.store.DataStore<java.lang.String,WebPage> store
protected org.apache.avro.util.Utf8 batchId
public void setup(Mapper.Context context) throws java.io.IOException
setup
in class Mapper<java.lang.String,WebPage,java.lang.String,NutchDocument>
java.io.IOException
protected void cleanup(Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException
cleanup
in class Mapper<java.lang.String,WebPage,java.lang.String,NutchDocument>
java.io.IOException
java.lang.InterruptedException
public void map(java.lang.String key, WebPage page, Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException
map
in class Mapper<java.lang.String,WebPage,java.lang.String,NutchDocument>
java.io.IOException
java.lang.InterruptedException
Copyright © 2019 The Apache Software Foundation