Package org.apache.nutch.crawl.UrlWithScore.UrlScoreComparator

Examples of org.apache.nutch.crawl.UrlWithScore.UrlScoreComparator.UrlOnlyComparator


    assertEquals(partForKey3, part.getPartition(k4, null, numReduces));
    assertEquals(partForKey3, part.getPartition(k5, null, numReduces));
  }
 
  public void testUrlOnlySorting() throws IOException {
    UrlOnlyComparator comp = new UrlOnlyComparator();
   
    UrlWithScore k1 = new UrlWithScore("http://example.org/1", 1f);
    UrlWithScore k2 = new UrlWithScore("http://example.org/1", 2f);
    UrlWithScore k3 = new UrlWithScore("http://example.org/2", 1f);
    UrlWithScore k4 = new UrlWithScore("http://example.org/2", 2f);
View Full Code Here


    assertEquals(partForKey3, part.getPartition(k5, null, numReduces));
  }
 
  @Test
  public void testUrlOnlySorting() throws IOException {
    UrlOnlyComparator comp = new UrlOnlyComparator();
   
    UrlWithScore k1 = new UrlWithScore("http://example.org/1", 1f);
    UrlWithScore k2 = new UrlWithScore("http://example.org/1", 2f);
    UrlWithScore k3 = new UrlWithScore("http://example.org/2", 1f);
    UrlWithScore k4 = new UrlWithScore("http://example.org/2", 2f);
View Full Code Here

TOP

Related Classes of org.apache.nutch.crawl.UrlWithScore.UrlScoreComparator.UrlOnlyComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.