Package com.atlassian.jira.jql.query
Class RelationalOperatorMutatedIndexValueQueryFactory
java.lang.Object
com.atlassian.jira.jql.query.RelationalOperatorMutatedIndexValueQueryFactory
- All Implemented Interfaces:
OperatorSpecificQueryFactory
public class RelationalOperatorMutatedIndexValueQueryFactory
extends Object
implements OperatorSpecificQueryFactory
Creates relational queries for clauses with operands whose index value representation is based on mutated raw values
as opposed to domain values.
- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionRelationalOperatorMutatedIndexValueQueryFactory(IndexInfoResolver<?> indexInfoResolver) -
Method Summary
Modifier and TypeMethodDescriptioncreateQueryForEmptyOperand(String fieldName, Operator operator) Generates the query for an operand that has anOperandHandlerthat returns true for the isEmpty method.createQueryForMultipleValues(String fieldName, Operator operator, List<QueryLiteral> rawValues) Generates the Query for a list of operand ids.createQueryForSingleValue(String fieldName, Operator operator, List<QueryLiteral> rawValues) Generates the Query for a single operand id.booleanhandlesOperator(Operator operator)
-
Constructor Details
-
RelationalOperatorMutatedIndexValueQueryFactory
-
-
Method Details
-
createQueryForSingleValue
public QueryFactoryResult createQueryForSingleValue(String fieldName, Operator operator, List<QueryLiteral> rawValues) Description copied from interface:OperatorSpecificQueryFactoryGenerates the Query for a single operand id.- Specified by:
createQueryForSingleValuein interfaceOperatorSpecificQueryFactory- Parameters:
fieldName- the index field name the query should be generated for.operator- operator which is handled by this implementation.rawValues- the raw values provided to the operand that need to be converted to index values.- Returns:
- the queryFactoryResult that contains the query and the metadata.
-
createQueryForMultipleValues
public QueryFactoryResult createQueryForMultipleValues(String fieldName, Operator operator, List<QueryLiteral> rawValues) Description copied from interface:OperatorSpecificQueryFactoryGenerates the Query for a list of operand ids.- Specified by:
createQueryForMultipleValuesin interfaceOperatorSpecificQueryFactory- Parameters:
fieldName- the index field name the query should be generated for.operator- operator which is handled by this implementation.rawValues- the raw values provided to the operand that need to be converted to index values.- Returns:
- the queryFactoryResult that contains the query and the metadata.
-
createQueryForEmptyOperand
Description copied from interface:OperatorSpecificQueryFactoryGenerates the query for an operand that has anOperandHandlerthat returns true for the isEmpty method. This should generate a Lucene query that will perform the correct search for issues where the field value is not set.- Specified by:
createQueryForEmptyOperandin interfaceOperatorSpecificQueryFactory- Parameters:
fieldName- the index field name the query should be generated for.operator- operator which is handled by this implementation.- Returns:
- the queryFactoryResult that contains the query and the metadata.
-
handlesOperator
- Specified by:
handlesOperatorin interfaceOperatorSpecificQueryFactory- Parameters:
operator- the operator in question.- Returns:
- true if this implementation can handle the operator, false otherwise.
-