org.apache.nutch.crawl
Class UrlWithScore.UrlScoreComparator.UrlOnlyComparator

java.lang.Object
  extended by org.apache.nutch.crawl.UrlWithScore.UrlScoreComparator.UrlOnlyComparator
All Implemented Interfaces:
Comparator<UrlWithScore>, RawComparator<UrlWithScore>
Enclosing class:
UrlWithScore.UrlScoreComparator

public static final class UrlWithScore.UrlScoreComparator.UrlOnlyComparator
extends Object
implements RawComparator<UrlWithScore>

Compares by {url}.


Constructor Summary
UrlWithScore.UrlScoreComparator.UrlOnlyComparator()
           
 
Method Summary
 int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
           
 int compare(UrlWithScore o1, UrlWithScore o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

UrlWithScore.UrlScoreComparator.UrlOnlyComparator

public UrlWithScore.UrlScoreComparator.UrlOnlyComparator()
Method Detail

compare

public int compare(UrlWithScore o1,
                   UrlWithScore o2)
Specified by:
compare in interface Comparator<UrlWithScore>

compare

public int compare(byte[] b1,
                   int s1,
                   int l1,
                   byte[] b2,
                   int s2,
                   int l2)
Specified by:
compare in interface RawComparator<UrlWithScore>


Copyright © 2012 The Apache Software Foundation