You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by ma...@apache.org on 2014/06/05 10:34:01 UTC

svn commit: r1600566 - in /nutch/trunk: CHANGES.txt src/java/org/apache/nutch/util/NodeWalker.java

Author: markus
Date: Thu Jun  5 08:34:01 2014
New Revision: 1600566

URL: http://svn.apache.org/r1600566
Log:
NUTCH-1782 NodeWalker to return current node

Modified:
    nutch/trunk/CHANGES.txt
    nutch/trunk/src/java/org/apache/nutch/util/NodeWalker.java

Modified: nutch/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/nutch/trunk/CHANGES.txt?rev=1600566&r1=1600565&r2=1600566&view=diff
==============================================================================
--- nutch/trunk/CHANGES.txt (original)
+++ nutch/trunk/CHANGES.txt Thu Jun  5 08:34:01 2014
@@ -2,6 +2,8 @@ Nutch Change Log
 
 Nutch Current Development
 
+* NUTCH-1782 NodeWalker to return current node (markus)
+
 * NUTCH-1758 IndexChecker to send document to IndexWriters (jnioche)
 
 * NUTCH-1786 CrawlDb should follow db.url.normalizers and db.url.filters (Diaa via markus)

Modified: nutch/trunk/src/java/org/apache/nutch/util/NodeWalker.java
URL: http://svn.apache.org/viewvc/nutch/trunk/src/java/org/apache/nutch/util/NodeWalker.java?rev=1600566&r1=1600565&r2=1600566&view=diff
==============================================================================
--- nutch/trunk/src/java/org/apache/nutch/util/NodeWalker.java (original)
+++ nutch/trunk/src/java/org/apache/nutch/util/NodeWalker.java Thu Jun  5 08:34:01 2014
@@ -102,6 +102,14 @@ public class NodeWalker {
   }
   
   /**
+   * Return the current node.
+   * @return Node
+   */
+  public Node getCurrentNode() {
+    return currentNode;
+  }
+  
+  /**
    * @return returns true if there are more nodes on the current stack.
    * 
    */