mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-21 21:14:12 +08:00
Added TODO comment in LuceneQuery.listResults().
This commit is contained in:
parent
0f94b22d85
commit
f01401c2bc
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Copyright (c) 2010 Mysema Ltd.
|
||||
* All rights reserved.
|
||||
*
|
||||
*
|
||||
*/
|
||||
package com.mysema.query.lucene;
|
||||
|
||||
@ -150,6 +150,10 @@ public class LuceneQuery implements SimpleQuery<LuceneQuery>, SimpleProjectable<
|
||||
@Override
|
||||
public SearchResults<Document> listResults() {
|
||||
List<Document> documents = list();
|
||||
/*
|
||||
* TODO Get rid of count(). It could be implemented by iterating the
|
||||
* list results in list* from n to m.
|
||||
*/
|
||||
return new SearchResults<Document>(documents, queryMixin.getMetadata().getModifiers(), count());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user