jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r233298 - /incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/CachingMultiReader.java
Date Thu, 18 Aug 2005 08:18:54 GMT
Author: mreutegg
Date: Thu Aug 18 01:18:47 2005
New Revision: 233298

URL: http://svn.apache.org/viewcvs?rev=233298&view=rev
Log:
JCR-191: Query throws UnsupportedOperationException

Modified:
    incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/CachingMultiReader.java

Modified: incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/CachingMultiReader.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/CachingMultiReader.java?rev=233298&r1=233297&r2=233298&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/CachingMultiReader.java
(original)
+++ incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/CachingMultiReader.java
Thu Aug 18 01:18:47 2005
@@ -300,10 +300,15 @@
         }
 
         /**
-         * @throws UnsupportedOperationException always
+         * {@inheritDoc}
          */
-        public boolean skipTo(int target) {
-            throw new UnsupportedOperationException();
+        public boolean skipTo(int target) throws IOException {
+            do {
+                if (!next()) {
+                    return false;
+                }
+            } while (target > doc());
+            return true;
         }
 
         /**



Mime
View raw message