Class MultiColumnQueryAdapter
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.MultiColumnQueryAdapter
-
- All Implemented Interfaces:
MultiColumnQuery
public class MultiColumnQueryAdapter extends Object implements MultiColumnQuery
MultiColumnQueryAdapter
adapts a lucene query to act like aMultiColumnQuery
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiColumnQuery
adapt(Query query, Name selectorName)
Adapts the givenquery
.MultiColumnQueryHits
execute(JackrabbitIndexSearcher searcher, Ordering[] orderings, long resultFetchHint)
Executes this query and returns multi column query hits.
-
-
-
Method Detail
-
adapt
public static MultiColumnQuery adapt(Query query, Name selectorName)
Adapts the givenquery
.- Parameters:
query
- the lucene query to adapt.selectorName
- the selector name for the query hits.- Returns:
- a
MultiColumnQuery
that wraps the given lucene query.
-
execute
public MultiColumnQueryHits execute(JackrabbitIndexSearcher searcher, Ordering[] orderings, long resultFetchHint) throws IOException
Executes this query and returns multi column query hits.- Specified by:
execute
in interfaceMultiColumnQuery
- Parameters:
searcher
- the index searcher.orderings
- the orderings.resultFetchHint
- the result fetch hint.- Returns:
- the query hits.
- Throws:
IOException
- if an error occurs while executing the query.
-
-