Class MatchAllDocsQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.search.MatchAllDocsQuery
-
- org.apache.jackrabbit.core.query.lucene.MatchAllDocsQuery
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JackrabbitQuery
public class MatchAllDocsQuery extends MatchAllDocsQuery implements JackrabbitQuery
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatchAllDocsQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryHits
execute(JackrabbitIndexSearcher searcher, SessionImpl session, Sort sort)
Executes this query and returnsQueryHits
ornull
if this query should be executed using the regular Lucene API.-
Methods inherited from class org.apache.lucene.search.MatchAllDocsQuery
createWeight, equals, extractTerms, hashCode, toString
-
Methods inherited from class org.apache.lucene.search.Query
clone, combine, getBoost, getSimilarity, mergeBooleanQueries, rewrite, setBoost, toString, weight
-
-
-
-
Method Detail
-
execute
public QueryHits execute(JackrabbitIndexSearcher searcher, SessionImpl session, Sort sort) throws IOException
Executes this query and returnsQueryHits
ornull
if this query should be executed using the regular Lucene API.Important note: an implementation must not call
JackrabbitIndexSearcher.execute(Query, Sort, long, org.apache.jackrabbit.spi.Name)
with this query instance as a parameter, otherwise a stack overflow will occur.- Specified by:
execute
in interfaceJackrabbitQuery
- Parameters:
searcher
- the jackrabbit index searcher.session
- the session that executes the query.sort
- the sort criteria that must be reflected in the returnedQueryHits
.- Returns:
- the query hits or
null
if the regular Lucene API should be used by the caller. - Throws:
IOException
- if an error occurs while executing the query.
-
-