Author: lewismc
Date: Fri Jan 9 06:14:33 2015
New Revision: 1650446
URL: http://svn.apache.org/r1650446
Log:
NUTCH-1907 Incorrect output of Outlinks to Hosts within HostDbUpdateReducer
Modified:
nutch/branches/2.x/CHANGES.txt
nutch/branches/2.x/src/java/org/apache/nutch/host/HostDbUpdateReducer.java
Modified: nutch/branches/2.x/CHANGES.txt
URL:
http://svn.apache.org/viewvc/nutch/branches/2.x/CHANGES.txt?rev=1650446&r1=1650445&r2=1650446&view=diff
==============================================================================
--- nutch/branches/2.x/CHANGES.txt (original)
+++ nutch/branches/2.x/CHANGES.txt Fri Jan 9 06:14:33 2015
@@ -2,6 +2,8 @@ Nutch Change Log
Current Development 2.3-SNAPSHOT
+* NUTCH-1907 Incorrect output of Outlinks to Hosts within HostDbUpdateReducer
(lewismc)
+
* NUTCH-1856 Document webpage.avsc and host.avsc (lewismc)
* NUTCH-1834 GeneratorMapper behavior depends on log level (Gerhard Gossen via
snagel)
Modified:
nutch/branches/2.x/src/java/org/apache/nutch/host/HostDbUpdateReducer.java
URL:
http://svn.apache.org/viewvc/nutch/branches/2.x/src/java/org/apache/nutch/host/HostDbUpdateReducer.java?rev=1650446&r1=1650445&r2=1650446&view=diff
==============================================================================
--- nutch/branches/2.x/src/java/org/apache/nutch/host/HostDbUpdateReducer.java
(original)
+++ nutch/branches/2.x/src/java/org/apache/nutch/host/HostDbUpdateReducer.java
Fri Jan 9 06:14:33 2015
@@ -84,7 +84,7 @@ public class HostDbUpdateReducer extends
host.getInlinks().put(new Utf8(inlink), new
Utf8(Integer.toString(inlinkCount.getCount(inlink))));
}
for (String outlink: outlinkCount.getKeys()) {
- host.getInlinks().put(new Utf8(outlink), new
Utf8(Integer.toString(outlinkCount.getCount(outlink))));
+ host.getOutlinks().put(new Utf8(outlink), new
Utf8(Integer.toString(outlinkCount.getCount(outlink))));
}
context.write(key.toString(), host);