jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cki...@apache.org
Subject svn commit: r572891 - in /jackrabbit/trunk/jackrabbit-core/src: main/java/org/apache/jackrabbit/core/query/lucene/ test/java/org/apache/jackrabbit/core/query/
Date Wed, 05 Sep 2007 07:08:10 GMT
Author: ckiehl
Date: Wed Sep  5 00:08:09 2007
New Revision: 572891

URL: http://svn.apache.org/viewvc?rev=572891&view=rev
Log:
JCR-1114: Renamed LazyQueryResultImpl to QueryResultImpl

Added:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryResultImpl.java
      - copied, changed from r572889, jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java
Removed:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java
Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/LimitAndOffsetTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java?rev=572891&r1=572890&r2=572891&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
Wed Sep  5 00:08:09 2007
@@ -170,7 +170,7 @@
             ascSpecs[i] = orderSpecs[i].isAscending();
         }
 
-        return new LazyQueryResultImpl(index, itemMgr, session.getNamespaceResolver(),
+        return new QueryResultImpl(index, itemMgr, session.getNamespaceResolver(),
                 session.getAccessManager(), this, query, getSelectProperties(),
                 orderProperties, ascSpecs, documentOrder, offset, limit);
     }

Copied: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryResultImpl.java
(from r572889, jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java)
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryResultImpl.java?p2=jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryResultImpl.java&p1=jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java&r1=572889&r2=572891&rev=572891&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyQueryResultImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryResultImpl.java
Wed Sep  5 00:08:09 2007
@@ -42,12 +42,12 @@
 /**
  * Implements the <code>javax.jcr.query.QueryResult</code> interface.
  */
-public class LazyQueryResultImpl implements QueryResult {
+public class QueryResultImpl implements QueryResult {
 
     /**
      * The logger instance for this class
      */
-    private static final Logger log = LoggerFactory.getLogger(LazyQueryResultImpl.class);
+    private static final Logger log = LoggerFactory.getLogger(QueryResultImpl.class);
 
     /**
      * The search index to execute the query.
@@ -154,7 +154,7 @@
      * @param limit         the maximum result size
      * @param offset        the offset in the total result set
      */
-    public LazyQueryResultImpl(SearchIndex index,
+    public QueryResultImpl(SearchIndex index,
                            ItemManager itemMgr,
                            NamespaceResolver resolver,
                            AccessManager accessMgr,

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/LimitAndOffsetTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/LimitAndOffsetTest.java?rev=572891&r1=572890&r2=572891&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/LimitAndOffsetTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/LimitAndOffsetTest.java
Wed Sep  5 00:08:09 2007
@@ -8,7 +8,7 @@
 import javax.jcr.query.QueryManager;
 import javax.jcr.query.QueryResult;
 
-import org.apache.jackrabbit.core.query.lucene.LazyQueryResultImpl;
+import org.apache.jackrabbit.core.query.lucene.QueryResultImpl;
 
 public class LimitAndOffsetTest extends AbstractQueryTest {
 
@@ -102,14 +102,14 @@
         QueryResult result = query.execute();
         NodeIterator nodes = result.getNodes();
         assertEquals(2, nodes.getSize());
-        assertEquals(3, ((LazyQueryResultImpl) result).getTotalSize());
+        assertEquals(3, ((QueryResultImpl) result).getTotalSize());
 
         query.setOffset(1);
         query.setLimit(1);
         result = query.execute();
         nodes = result.getNodes();
         assertEquals(1, nodes.getSize());
-        assertEquals(3, ((LazyQueryResultImpl) result).getTotalSize());
+        assertEquals(3, ((QueryResultImpl) result).getTotalSize());
     }
 
 }



Mime
View raw message