org.alfresco.repo.search.impl.querymodel.impl.lucene
Class LuceneQuery

java.lang.Object
  extended by org.alfresco.repo.search.impl.querymodel.impl.BaseQuery
      extended by org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneQuery
All Implemented Interfaces:
LuceneQueryBuilder, Query

public class LuceneQuery
extends BaseQuery
implements LuceneQueryBuilder


Constructor Summary
LuceneQuery(java.util.List columns, Source source, Constraint constraint, java.util.List orderings)
           
 
Method Summary
 org.apache.lucene.search.Query buildQuery(java.util.Set selectors, LuceneQueryBuilderContext luceneContext, FunctionEvaluationContext functionContext)
          Build the matching lucene query
 org.apache.lucene.search.Sort buildSort(java.util.Set selectors, LuceneQueryBuilderContext luceneContext, FunctionEvaluationContext functionContext)
          Build the matching lucene sort
 
Methods inherited from class org.alfresco.repo.search.impl.querymodel.impl.BaseQuery
getColumns, getConstraint, getOrderings, getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LuceneQuery

public LuceneQuery(java.util.List columns,
                   Source source,
                   Constraint constraint,
                   java.util.List orderings)
Parameters:
columns -
source -
constraint -
orderings -
Method Detail

buildQuery

public org.apache.lucene.search.Query buildQuery(java.util.Set selectors,
                                                 LuceneQueryBuilderContext luceneContext,
                                                 FunctionEvaluationContext functionContext)
                                          throws org.apache.lucene.queryParser.ParseException
Description copied from interface: LuceneQueryBuilder
Build the matching lucene query

Specified by:
buildQuery in interface LuceneQueryBuilder
Returns:
- the query
Throws:
org.apache.lucene.queryParser.ParseException

buildSort

public org.apache.lucene.search.Sort buildSort(java.util.Set selectors,
                                               LuceneQueryBuilderContext luceneContext,
                                               FunctionEvaluationContext functionContext)
Description copied from interface: LuceneQueryBuilder
Build the matching lucene sort

Specified by:
buildSort in interface LuceneQueryBuilder
Returns:
- the sort spec


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.