java.lang.Object
org.evomaster.client.java.controller.opensearch.selectors.QuerySelector
Direct Known Subclasses:
TermSelector

public abstract class QuerySelector extends Object
A selector is used to determine if a query correspond to a certain operation. To do so it checks that the syntax is correct (operator, value type, etc.). Each selector maps to a unique operation.
  • Constructor Details

    • QuerySelector

      public QuerySelector()
  • Method Details

    • getOperation

      public abstract QueryOperation getOperation(Object query)
      Returns the operation mapped to the selector if the query satisfy all syntax checks or null if not.
    • hasTheExpectedOperator

      protected Boolean hasTheExpectedOperator(Object query)
    • extractOperator

      protected abstract String extractOperator(Object query)
      Extracts the operator (for example $eq) from the query.
    • operator

      protected abstract String operator()
      The operator a query must have to be considered as an instance of the corresponding operation.
    • structure

      protected abstract String structure()