org.apache.jackrabbit.core.query.lucene
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:
- java.io.Serializable, java.lang.Cloneable, JackrabbitQuery
public class MatchAllDocsQuery
- extends org.apache.lucene.search.MatchAllDocsQuery
- implements JackrabbitQuery
MatchAllDocsQuery extends the lucene MatchAllDocsQuery
and in addition implements JackrabbitQuery.
- See Also:
- Serialized Form
| 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 |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MatchAllDocsQuery
public MatchAllDocsQuery()
execute
public QueryHits execute(JackrabbitIndexSearcher searcher,
SessionImpl session,
org.apache.lucene.search.Sort sort)
throws java.io.IOException
- Executes this query and returns
QueryHits or null if
this query should be executed using the regular Lucene API.
Important note: an implementation must not call
JackrabbitIndexSearcher.execute(org.apache.lucene.search.Query, Sort)
with this query instance as a parameter, otherwise a stack overflow will
occur.
- Specified by:
execute in interface JackrabbitQuery
- Parameters:
searcher - the jackrabbit index searcher.session - the session that executes the query.sort - the sort criteria that must be reflected in the returned
QueryHits.
- Returns:
- the query hits or
null if the regular Lucene API
should be used by the caller.
- Throws:
java.io.IOException - if an error occurs while executing the query.
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.