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

java.lang.Object
  extended by 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 a MultiColumnQuery.


Method Summary
static MultiColumnQuery adapt(org.apache.lucene.search.Query query, Name selectorName)
          Adapts the given query.
 MultiColumnQueryHits execute(JackrabbitIndexSearcher searcher, Ordering[] orderings, long resultFetchHint)
          Executes this query and returns multi column query hits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

adapt

public static MultiColumnQuery adapt(org.apache.lucene.search.Query query,
                                     Name selectorName)
Adapts the given query.

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 interface MultiColumnQuery
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.


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