|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.nutch.crawl.Generator.Selector
public static class Generator.Selector
Selects entries due for fetch.
| Constructor Summary | |
|---|---|
Generator.Selector()
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
configure(JobConf job)
|
int |
getPartition(FloatWritable key,
Writable value,
int numReduceTasks)
Partition by host / domain or IP. |
void |
map(Text key,
CrawlDatum value,
OutputCollector<FloatWritable,Generator.SelectorEntry> output,
Reporter reporter)
Select & invert subset due for fetch. |
void |
reduce(FloatWritable key,
Iterator<Generator.SelectorEntry> values,
OutputCollector<FloatWritable,Generator.SelectorEntry> output,
Reporter reporter)
Collect until limit is reached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Generator.Selector()
| Method Detail |
|---|
public void configure(JobConf job)
configure in interface JobConfigurablepublic void close()
close in interface Closeable
public void map(Text key,
CrawlDatum value,
OutputCollector<FloatWritable,Generator.SelectorEntry> output,
Reporter reporter)
throws IOException
map in interface Mapper<Text,CrawlDatum,FloatWritable,Generator.SelectorEntry>IOException
public int getPartition(FloatWritable key,
Writable value,
int numReduceTasks)
getPartition in interface Partitioner<FloatWritable,Writable>
public void reduce(FloatWritable key,
Iterator<Generator.SelectorEntry> values,
OutputCollector<FloatWritable,Generator.SelectorEntry> output,
Reporter reporter)
throws IOException
reduce in interface Reducer<FloatWritable,Generator.SelectorEntry,FloatWritable,Generator.SelectorEntry>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||