org.apache.jackrabbit.core.query.lucene
Class MatchAllDocsQuery

java.lang.Object
  extended by org.apache.lucene.search.Query
      extended by org.apache.lucene.search.MatchAllDocsQuery
          extended by org.apache.jackrabbit.core.query.lucene.MatchAllDocsQuery
All Implemented Interfaces:
Serializable, 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

Constructor Summary
MatchAllDocsQuery()
           
 
Method Summary
 QueryHits execute(JackrabbitIndexSearcher searcher, SessionImpl session, org.apache.lucene.search.Sort sort)
          Executes this query and returns QueryHits or null 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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchAllDocsQuery

public MatchAllDocsQuery()
Method Detail

execute

public QueryHits execute(JackrabbitIndexSearcher searcher,
                         SessionImpl session,
                         org.apache.lucene.search.Sort sort)
                  throws 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(Query, Sort, long) 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:
IOException - if an error occurs while executing the query.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.