Class LuceneFunctionalConstraint<Q,S,E extends java.lang.Throwable>
- java.lang.Object
-
- org.alfresco.repo.search.impl.querymodel.impl.BaseConstraint
-
- org.alfresco.repo.search.impl.querymodel.impl.BaseFunctionalConstraint
-
- org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneFunctionalConstraint<Q,S,E>
-
- All Implemented Interfaces:
Constraint
,FunctionalConstraint
,FunctionInvokation
,LuceneQueryBuilderComponent<Q,S,E>
public class LuceneFunctionalConstraint<Q,S,E extends java.lang.Throwable> extends BaseFunctionalConstraint implements LuceneQueryBuilderComponent<Q,S,E>
- Author:
- andyh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.search.impl.querymodel.Constraint
Constraint.Occur
-
-
Constructor Summary
Constructors Constructor Description LuceneFunctionalConstraint(Function function, java.util.Map<java.lang.String,Argument> arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Q
addComponent(java.util.Set<java.lang.String> selectors, java.util.Map<java.lang.String,Argument> functionArgs, LuceneQueryBuilderContext<Q,S,E> 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
-
-
-
-
Method Detail
-
addComponent
public Q addComponent(java.util.Set<java.lang.String> selectors, java.util.Map<java.lang.String,Argument> functionArgs, LuceneQueryBuilderContext<Q,S,E> luceneContext, FunctionEvaluationContext functionContext) throws E extends java.lang.Throwable
Description copied from interface:LuceneQueryBuilderComponent
Generate the lucene query from the query component- Specified by:
addComponent
in interfaceLuceneQueryBuilderComponent<Q,S,E extends java.lang.Throwable>
functionContext
- FunctionEvaluationContext- Returns:
- - the lucene query fragment for this component
- Throws:
E
E extends java.lang.Throwable
-
-