lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r164699 - /lucene/java/trunk/src/java/org/apache/lucene/search/Hits.java
Date Tue, 26 Apr 2005 00:51:59 GMT
Author: ehatcher
Date: Mon Apr 25 17:51:58 2005
New Revision: 164699

URL: http://svn.apache.org/viewcvs?rev=164699&view=rev
Log:
add warning about Hits.iterator

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/Hits.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/Hits.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/Hits.java?rev=164699&r1=164698&r2=164699&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/Hits.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/Hits.java Mon Apr 25 17:51:58 2005
@@ -118,6 +118,11 @@
   /**
    * Returns an {@link Iterator} to navigate the Hits.  Each item returned
    * from {@link Iterator#next()} is a {@link Hit}.
+   * <p>
+   * <b>Caution:</b> Iterate only over the hits needed.  Iterating over all
+   * hits is generally not desirable and may be the source of
+   * performance issues.
+   * </p>
    */
   public Iterator iterator() {
     return new HitIterator(this);



Mime
View raw message