com.atlassian.jira.jql.query
Class EqualityQueryFactory<T>

java.lang.Object
  extended by com.atlassian.jira.jql.query.AbstractOperatorQueryFactory<T>
      extended by com.atlassian.jira.jql.query.AbstractEqualityQueryFactory<T>
          extended by com.atlassian.jira.jql.query.EqualityQueryFactory<T>
All Implemented Interfaces:
OperatorSpecificQueryFactory

public class EqualityQueryFactory<T>
extends AbstractEqualityQueryFactory<T>

Used to generate equality lucene queries. When this searches for EMPTY values it will search for the absense of the field in the DocumentConstants.ISSUE_NON_EMPTY_FIELD_IDS field.

Since:
v4.0

Constructor Summary
EqualityQueryFactory(IndexInfoResolver<T> tIndexInfoResolver)
           
 
Method Summary
 QueryFactoryResult createQueryForEmptyOperand(String fieldName, Operator operator)
          Generates the query for an operand that has an OperandHandler that returns true for the isEmpty method.
 
Methods inherited from class com.atlassian.jira.jql.query.AbstractEqualityQueryFactory
createQueryForMultipleValues, createQueryForSingleValue, handlesOperator
 
Methods inherited from class com.atlassian.jira.jql.query.AbstractOperatorQueryFactory
checkQueryForEmpty, getTermQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualityQueryFactory

public EqualityQueryFactory(IndexInfoResolver<T> tIndexInfoResolver)
Method Detail

createQueryForEmptyOperand

public QueryFactoryResult createQueryForEmptyOperand(String fieldName,
                                                     Operator operator)
Description copied from interface: OperatorSpecificQueryFactory
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.


Copyright © 2002-2012 Atlassian. All Rights Reserved.