org.apache.nutch.crawl
Class UrlWithScore.UrlOnlyPartitioner
java.lang.Object
org.apache.hadoop.mapreduce.Partitioner<UrlWithScore,NutchWritable>
org.apache.nutch.crawl.UrlWithScore.UrlOnlyPartitioner
- Enclosing class:
- UrlWithScore
public static final class UrlWithScore.UrlOnlyPartitioner
- extends org.apache.hadoop.mapreduce.Partitioner<UrlWithScore,NutchWritable>
A partitioner by {url}.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlWithScore.UrlOnlyPartitioner
public UrlWithScore.UrlOnlyPartitioner()
getPartition
public int getPartition(UrlWithScore key,
NutchWritable val,
int reduces)
- Specified by:
getPartition
in class org.apache.hadoop.mapreduce.Partitioner<UrlWithScore,NutchWritable>
Copyright © 2013 The Apache Software Foundation