Class MultiConditionQuerySelector
java.lang.Object
org.evomaster.client.java.controller.mongo.selectors.QuerySelector
org.evomaster.client.java.controller.mongo.selectors.MultiConditionQuerySelector
- Direct Known Subclasses:
AndSelector,NorSelector,OrSelector
Selectors for operations whose value consist of a list of conditions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract QueryOperationcomposeConditions(List<QueryOperation> conditions) Composes aQueryOperationfrom a list of conditions.protected StringextractOperator(Object query) Extracts the operator (for example $eq) from the query.getOperation(Object bsonDocument) Returns the operation mapped to the selector if the query satisfy all syntax checks or null if not.Methods inherited from class org.evomaster.client.java.controller.mongo.selectors.QuerySelector
hasTheExpectedOperator, isUniqueEntry, operator
-
Constructor Details
-
MultiConditionQuerySelector
public MultiConditionQuerySelector()
-
-
Method Details
-
getOperation
Description copied from class:QuerySelectorReturns the operation mapped to the selector if the query satisfy all syntax checks or null if not.- Specified by:
getOperationin classQuerySelector
-
extractOperator
Description copied from class:QuerySelectorExtracts the operator (for example $eq) from the query.- Specified by:
extractOperatorin classQuerySelector
-
composeConditions
Composes aQueryOperationfrom a list of conditions. The specific behavior of this method depends on the implementation in subclasses and how they process the provided conditions to create a composite operation.- Parameters:
conditions- the list ofQueryOperationobjects representing the individual query conditions- Returns:
- a
QueryOperationrepresenting the composed query based on the given conditions, or null if the conditions cannot be composed
-