|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.jql.query.QueryFactoryResult
public final class QueryFactoryResult
Represents the result of a call to the ClauseQueryFactory.getQuery(QueryCreationContext,com.atlassian.query.clause.TerminalClause)
method. The result contains the a Lucene Query and a flag to indicate whether or not the Lucene Query should be negated.
When the flag is set to true JIRA will automatically negate the Lucene Query when it is run in Lucene.
| Constructor Summary | |
|---|---|
QueryFactoryResult(org.apache.lucene.search.Query luceneQuery)
Default constructor that sets mustNotOccur to false. |
|
QueryFactoryResult(org.apache.lucene.search.Query luceneQuery,
boolean mustNotOccur)
Create the result with the passed result and flag. |
|
| Method Summary | |
|---|---|
static QueryFactoryResult |
createFalseResult()
Creates a QueryFactoryResult instance that will return no results. |
boolean |
equals(Object o)
|
org.apache.lucene.search.Query |
getLuceneQuery()
|
int |
hashCode()
|
static QueryFactoryResult |
mergeResultsWithShould(List<QueryFactoryResult> results)
|
boolean |
mustNotOccur()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryFactoryResult(org.apache.lucene.search.Query luceneQuery)
luceneQuery - the query to wrap. Must not be null.
IllegalArgumentException - if luceneQuery is null.
public QueryFactoryResult(org.apache.lucene.search.Query luceneQuery,
boolean mustNotOccur)
luceneQuery - the query to add. Must not be null.mustNotOccur - the flag to add to the result.
IllegalArgumentException - if luceneQuery is null.| Method Detail |
|---|
public static QueryFactoryResult createFalseResult()
QueryFactoryResult instance that will return no results.
QueryFactoryResult instance that will return no results.public static QueryFactoryResult mergeResultsWithShould(List<QueryFactoryResult> results)
results - a list of results you want to merge; must not be null or contain nulls
mustNotOccur() will always be false.public org.apache.lucene.search.Query getLuceneQuery()
public boolean mustNotOccur()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||