public interface JackrabbitQuery
JackrabbitQuery
defines an interface for Jackrabbit query
implementations that are at the root of the lucene query tree. It gives the
implementation the opportunity to execute in an optimized way returning
QueryHits
instead of a result that is tied to Lucene.Modifier and Type | Method and Description |
---|---|
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. |
QueryHits execute(JackrabbitIndexSearcher searcher, SessionImpl session, org.apache.lucene.search.Sort sort) throws IOException
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, org.apache.jackrabbit.spi.Name)
with this query instance as a parameter, otherwise a stack overflow will
occur.
searcher
- the jackrabbit index searcher.session
- the session that executes the query.sort
- the sort criteria that must be reflected in the returned
QueryHits
.null
if the regular Lucene API
should be used by the caller.IOException
- if an error occurs while executing the query.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.