com.atlassian.greenhopper.service.backlog
Class BacklogHitCollector

java.lang.Object
  extended by org.apache.lucene.search.HitCollector
      extended by com.atlassian.jira.issue.statistics.util.DocumentHitCollector
          extended by 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


Field Summary
 
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.
 
Method Summary
 void collect(org.apache.lucene.document.Document d)
           
 java.util.Set<Backlog> getBacklogs()
           
 java.lang.String getFieldName()
           
 java.util.List<com.atlassian.jira.issue.Issue> getMatchedIssues()
           
 boolean isNegate()
           
 
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
 

Constructor Detail

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 implementation
issueFactory -
fieldName - the field name to check for
backlogs - the backlogs to search for
negate - if true documents that are not assigned to one of the backlogs are matched
Method Detail

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.