@PublicApi public class

LikeQueryFactory

extends Object
implements OperatorSpecificQueryFactory
java.lang.Object
   ↳ com.atlassian.jira.jql.query.LikeQueryFactory

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

A factory for creating a Query for the equals operator.

Summary

Public Constructors
LikeQueryFactory()
LikeQueryFactory(boolean usesMainIndex)
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> rawValues)
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.
QueryFactoryResult createResult(String fieldName, List<QueryLiteral> rawValues, Operator operator, boolean handleEmpty)
boolean handlesOperator(Operator operator)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.jql.query.OperatorSpecificQueryFactory

Public Constructors

public LikeQueryFactory ()

public LikeQueryFactory (boolean usesMainIndex)

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> 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 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 QueryFactoryResult createResult (String fieldName, List<QueryLiteral> rawValues, Operator operator, boolean handleEmpty)

public boolean handlesOperator (Operator operator)