com.atlassian.greenhopper.service.backlog
Class BacklogHitCollector
java.lang.Object
org.apache.lucene.search.HitCollector
com.atlassian.jira.issue.statistics.util.DocumentHitCollector
com.atlassian.greenhopper.service.backlog.BacklogHitCollector
public class BacklogHitCollector
- extends com.atlassian.jira.issue.statistics.util.DocumentHitCollector
Collector class that matches issue backlogid values to a set of Backlogs.
Supports either positive or negative match
Fields inherited from class com.atlassian.jira.issue.statistics.util.DocumentHitCollector |
searcher |
Constructor Summary |
BacklogHitCollector(org.apache.lucene.search.Searchable searcher,
com.atlassian.jira.issue.IssueFactory issueFactory,
java.lang.String fieldName,
java.util.Set<Backlog> backlogs,
boolean negate)
Collect issues for the given backlog field. |
Methods inherited from class com.atlassian.jira.issue.statistics.util.DocumentHitCollector |
collect |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BacklogHitCollector
public BacklogHitCollector(org.apache.lucene.search.Searchable searcher,
com.atlassian.jira.issue.IssueFactory issueFactory,
java.lang.String fieldName,
java.util.Set<Backlog> backlogs,
boolean negate)
- Collect issues for the given backlog field. All issues being assigned to one of the provided backlogs are matched,
or the opposite in case negate is true.
- Parameters:
searcher
- the searcher implementationissueFactory
- fieldName
- the field name to check forbacklogs
- the backlogs to search fornegate
- if true documents that are not assigned to one of the backlogs are matched
collect
public void collect(org.apache.lucene.document.Document d)
- Specified by:
collect
in class com.atlassian.jira.issue.statistics.util.DocumentHitCollector
getBacklogs
public java.util.Set<Backlog> getBacklogs()
getFieldName
public java.lang.String getFieldName()
isNegate
public boolean isNegate()
getMatchedIssues
public java.util.List<com.atlassian.jira.issue.Issue> getMatchedIssues()
Copyright © 2007-2011 Atlassian. All Rights Reserved.