org.apache.nutch.crawl
Class URLPartitioner.SelectorEntryPartitioner

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Partitioner<GeneratorJob.SelectorEntry,WebPage>
      extended by org.apache.nutch.crawl.URLPartitioner.SelectorEntryPartitioner
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
Enclosing class:
URLPartitioner

public static class URLPartitioner.SelectorEntryPartitioner
extends org.apache.hadoop.mapreduce.Partitioner<GeneratorJob.SelectorEntry,WebPage>
implements org.apache.hadoop.conf.Configurable


Constructor Summary
URLPartitioner.SelectorEntryPartitioner()
           
 
Method Summary
 org.apache.hadoop.conf.Configuration getConf()
           
 int getPartition(GeneratorJob.SelectorEntry selectorEntry, WebPage page, int numReduces)
           
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLPartitioner.SelectorEntryPartitioner

public URLPartitioner.SelectorEntryPartitioner()
Method Detail

getPartition

public int getPartition(GeneratorJob.SelectorEntry selectorEntry,
                        WebPage page,
                        int numReduces)
Specified by:
getPartition in class org.apache.hadoop.mapreduce.Partitioner<GeneratorJob.SelectorEntry,WebPage>

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable


Copyright © 2013 The Apache Software Foundation