Interface OperatorSpecificQueryFactory

All Known Implementing Classes:
AbstractEqualityQueryFactory, ActualValueEqualityQueryFactory, ActualValueRelationalQueryFactory, DateEqualityQueryFactory, DateRelationalQueryFactory, EqualityQueryFactory, EqualityWithSpecifiedEmptyValueQueryFactory, LikeQueryFactory, LocalDateEqualityQueryFactory, LocalDateRelationalQueryFactory, NumberEqualityQueryFactory, NumberRelationalQueryFactory, RelationalOperatorIdIndexValueQueryFactory, RelationalOperatorMutatedIndexValueQueryMapper, VersionLikeQueryFactory, VersionSpecificRelationalOperatorQueryFactory

public interface OperatorSpecificQueryFactory
A factory that produces a Query for the given field, operator, and operand values.
Since:
10.4
  • Method Details

    • createQueryForSingleValue

      Query createQueryForSingleValue(String fieldName, Operator operator, List<QueryLiteral> rawValues)
      Generates the query for a single operand id.
      Parameters:
      fieldName - the index field name the query should be generated for.
      operator - operator which is handled by this implementation.
      rawValues - a list of raw values associated with the operand. These values are converted into index-specific representations.
      Returns:
      the result that contains the query of type Query and its metadata.
    • createQueryForMultipleValues

      Query createQueryForMultipleValues(String fieldName, Operator operator, List<QueryLiteral> rawValues)
      Generates the query for a list of operand ids.
      Parameters:
      fieldName - the index field name the query should be generated for.
      operator - operator which is handled by this implementation.
      rawValues - a list of raw values associated with the operand. These values are converted into index-specific representations.
      Returns:
      the result that contains the query of type Query and its metadata.
    • createQueryForEmptyOperand

      Query createQueryForEmptyOperand(String fieldName, Operator operator)
      Generates the query for an operand that supports EMPTY values.
      Parameters:
      fieldName - the index field name the query should be generated for.
      operator - operator which is handled by this implementation.
      Returns:
      the result that contains the query of type Query and its metadata.
    • handlesOperator

      boolean handlesOperator(Operator operator)
      Returns:
      true if this implementation can handle the given operator, false otherwise.