lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmarsch...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/fetcher URLVisitedFilter.java
Date Tue, 22 Oct 2002 15:21:50 GMT
cmarschner    2002/10/22 08:21:50

  Modified:    contributions/webcrawler-LARM/src/de/lanlab/larm/fetcher
                        URLVisitedFilter.java
  Log:
  added logging
  
  Revision  Changes    Path
  1.5       +8 -4      jakarta-lucene-sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/fetcher/URLVisitedFilter.java
  
  Index: URLVisitedFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/fetcher/URLVisitedFilter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- URLVisitedFilter.java	17 Jun 2002 13:59:28 -0000	1.4
  +++ URLVisitedFilter.java	22 Oct 2002 15:21:50 -0000	1.5
  @@ -95,11 +95,13 @@
        *
        * @param initialHashCapacity  Description of the Parameter
        */
  -    public URLVisitedFilter(int initialHashCapacity)
  +    public URLVisitedFilter(SimpleLogger log, int initialHashCapacity)
       {
           urlHash = new HashSet(initialHashCapacity);
           //urlVector = new Vector(initialHashCapacity);
  +        this.log = log;
       }
  +    SimpleLogger log;
   
   
       /**
  @@ -113,7 +115,7 @@
   
   
   
  -    /**
  +    /**q
        * @param message  Description of the Parameter
        * @return         Description of the Return Value
        */
  @@ -126,8 +128,10 @@
               String urlString = urlMessage.getNormalizedURLString();
               if (urlHash.contains(urlString))
               {
  -                //System.out.println("URLVisitedFilter: " + urlString + " already present.");
  +                //log.log("URLVisitedFilter: " + urlString + " already present.");
  +                log.log(message.toString());
                   filtered++;
  +
                   return null;
               }
               else
  
  
  

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message