public class

RelationalOperatorIdIndexValueQueryFactory

extends AbstractOperatorQueryFactory<T>
implements OperatorSpecificQueryFactory
java.lang.Object
   ↳ com.atlassian.jira.jql.query.AbstractOperatorQueryFactory<T>
     ↳ com.atlassian.jira.jql.query.RelationalOperatorIdIndexValueQueryFactory<T>
Known Direct Subclasses

Class Overview

Generates queries for the operators '>', '>=', '<', '<='.

Summary

Public Constructors
RelationalOperatorIdIndexValueQueryFactory(Comparator<? super T> comparator, NameResolver<T> resolver, IndexInfoResolver<T> indexInfoResolver)
Public Methods
QueryFactoryResult createQueryForEmptyOperand(String fieldName, Operator operator)
Generates the query for an operand that has an OperandHandler that returns true for the isEmpty method.
QueryFactoryResult createQueryForMultipleValues(String fieldName, Operator operator, List<QueryLiteral> listOfIds)
Generates the Query for a list of operand ids.
QueryFactoryResult createQueryForSingleValue(String fieldName, Operator operator, List<QueryLiteral> rawValues)
Generates the Query for a single operand id.
boolean handlesOperator(Operator operator)
Protected Methods
BooleanQuery generateRangeQueryForPredicate(String fieldName, Predicate<T> match)
[Expand]
Inherited Methods
From class com.atlassian.jira.jql.query.AbstractOperatorQueryFactory
From class java.lang.Object
From interface com.atlassian.jira.jql.query.OperatorSpecificQueryFactory

Public Constructors

public RelationalOperatorIdIndexValueQueryFactory (Comparator<? super T> comparator, NameResolver<T> resolver, IndexInfoResolver<T> indexInfoResolver)

Public Methods

public QueryFactoryResult createQueryForEmptyOperand (String fieldName, Operator operator)

Generates the query for an operand that has an OperandHandler that 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.

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.

public QueryFactoryResult createQueryForMultipleValues (String fieldName, Operator operator, List<QueryLiteral> listOfIds)

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.
listOfIds 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.

public QueryFactoryResult 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 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.

public boolean handlesOperator (Operator operator)

Protected Methods

protected BooleanQuery generateRangeQueryForPredicate (String fieldName, Predicate<T> match)