Class LuceneQueryModelFactory<Q,S,E extends Throwable>
java.lang.Object
org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneQueryModelFactory<Q,S,E>
- All Implemented Interfaces:
QueryModelFactory
public class LuceneQueryModelFactory<Q,S,E extends Throwable>
extends Object
implements QueryModelFactory
- Author:
- andyh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConjunction
(List<Constraint> constraints) createDisjunction
(List<Constraint> constraints) createFunctionalConstraint
(Function function, Map<String, Argument> functionArguments) createJoin
(Source left, Source right, JoinType joinType, Constraint joinCondition) createListArgument
(String name, ArrayList<Argument> arguments) createLiteralArgument
(String name, QName type, Serializable value) createOrdering
(Column column, Order order) createParameterArgument
(String name, String parameterName) createPropertyArgument
(String name, boolean queryable, boolean orderable, String selector, String propertyName) createQuery
(List<Column> columns, Source source, Constraint constraint, List<Ordering> orderings) createSelector
(QName classQName, String alias) createSelectorArgument
(String name, String selectorAlias) getFunction
(String functionName)
-
Constructor Details
-
LuceneQueryModelFactory
public LuceneQueryModelFactory()Default lucene query model factory and functions
-
-
Method Details
-
createColumn
- Specified by:
createColumn
in interfaceQueryModelFactory
-
createConjunction
- Specified by:
createConjunction
in interfaceQueryModelFactory
-
createDisjunction
- Specified by:
createDisjunction
in interfaceQueryModelFactory
-
createFunctionalConstraint
public Constraint createFunctionalConstraint(Function function, Map<String, Argument> functionArguments) - Specified by:
createFunctionalConstraint
in interfaceQueryModelFactory
-
createJoin
- Specified by:
createJoin
in interfaceQueryModelFactory
-
createLiteralArgument
- Specified by:
createLiteralArgument
in interfaceQueryModelFactory
-
createOrdering
- Specified by:
createOrdering
in interfaceQueryModelFactory
-
createParameterArgument
- Specified by:
createParameterArgument
in interfaceQueryModelFactory
-
createPropertyArgument
public PropertyArgument createPropertyArgument(String name, boolean queryable, boolean orderable, String selector, String propertyName) - Specified by:
createPropertyArgument
in interfaceQueryModelFactory
-
createQuery
public Query createQuery(List<Column> columns, Source source, Constraint constraint, List<Ordering> orderings) - Specified by:
createQuery
in interfaceQueryModelFactory
-
createSelector
- Specified by:
createSelector
in interfaceQueryModelFactory
-
getFunction
- Specified by:
getFunction
in interfaceQueryModelFactory
-
createSelectorArgument
- Specified by:
createSelectorArgument
in interfaceQueryModelFactory
-
createListArgument
- Specified by:
createListArgument
in interfaceQueryModelFactory
-
createFunctionArgument
public FunctionArgument createFunctionArgument(String name, Function function, Map<String, Argument> functionArguments) - Specified by:
createFunctionArgument
in interfaceQueryModelFactory
-