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

java.lang.Object
  extended by org.alfresco.repo.search.impl.querymodel.impl.BaseConstraint
      extended by org.alfresco.repo.search.impl.querymodel.impl.BaseFunctionalConstraint
          extended by org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneFunctionalConstraint
All Implemented Interfaces:
Constraint, FunctionalConstraint, FunctionInvokation, LuceneQueryBuilderComponent

public class LuceneFunctionalConstraint
extends BaseFunctionalConstraint
implements LuceneQueryBuilderComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.search.impl.querymodel.Constraint
Constraint.Occur
 
Constructor Summary
LuceneFunctionalConstraint(Function function, java.util.Map arguments)
           
 
Method Summary
 org.apache.lucene.search.Query addComponent(java.util.Set selectors, java.util.Map functionArgs, LuceneQueryBuilderContext luceneContext, FunctionEvaluationContext functionContext)
          Generate the lucene query from the query component
 
Methods inherited from class org.alfresco.repo.search.impl.querymodel.impl.BaseFunctionalConstraint
evaluate, getFunction, getFunctionArguments, toString
 
Methods inherited from class org.alfresco.repo.search.impl.querymodel.impl.BaseConstraint
getBoost, getOccur, setBoost, setOccur
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.alfresco.repo.search.impl.querymodel.Constraint
getBoost, getOccur, setBoost, setOccur
 

Constructor Detail

LuceneFunctionalConstraint

public LuceneFunctionalConstraint(Function function,
                                  java.util.Map arguments)
Parameters:
function -
arguments -
Method Detail

addComponent

public org.apache.lucene.search.Query addComponent(java.util.Set selectors,
                                                   java.util.Map functionArgs,
                                                   LuceneQueryBuilderContext luceneContext,
                                                   FunctionEvaluationContext functionContext)
                                            throws org.apache.lucene.queryParser.ParseException
Description copied from interface: LuceneQueryBuilderComponent
Generate the lucene query from the query component

Specified by:
addComponent in interface LuceneQueryBuilderComponent
Returns:
- the lucene query fragment for this component
Throws:
org.apache.lucene.queryParser.ParseException


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