Class LuceneFunctionalConstraint<Q,S,E extends 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 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
ConstructorsConstructorDescriptionLuceneFunctionalConstraint
(Function function, Map<String, Argument> arguments) -
Method Summary
Modifier and TypeMethodDescriptionaddComponent
(Set<String> selectors, Map<String, Argument> functionArgs, QueryBuilderContext<Q, S, E> luceneContext, FunctionEvaluationContext functionContext) Generate the lucene query from the query componentMethods 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 Details
-
LuceneFunctionalConstraint
- Parameters:
function
- Function
-
-
Method Details
-
addComponent
public Q addComponent(Set<String> selectors, Map<String, Argument> functionArgs, QueryBuilderContext<Q, throws ES, E> luceneContext, FunctionEvaluationContext functionContext) Description copied from interface:LuceneQueryBuilderComponent
Generate the lucene query from the query component- Specified by:
addComponent
in interfaceLuceneQueryBuilderComponent<Q,
S, E extends Throwable> functionContext
- FunctionEvaluationContext- Returns:
- - the lucene query fragment for this component
- Throws:
E
-