com.pyxis.greenhopper.jira.util.collector
Class MarkersCollector

java.lang.Object
  extended by org.apache.lucene.search.HitCollector
      extended by com.atlassian.jira.issue.statistics.util.DocumentHitCollector
          extended by com.pyxis.greenhopper.jira.util.collector.SimpleFieldCollector
              extended by com.pyxis.greenhopper.jira.util.collector.MarkersCollector

public class MarkersCollector
extends SimpleFieldCollector

This thing basically determines where the position of a marker should be. It's called back for each issue on a _sorted_ list of issues, and counts up the value of the marker till it says "no more" (max reached). That's inside the marker. Then there are special checks for subtasks, trying to include their parent, since markers don't go into subs (?). TODO the subtask logic here is broken if subs are sorted before parents (like a reverse issue key sort). Considering this, we can use the collector for fetching the list of possible parents as well (previously called through board.containsIssue), since it only works if the parent comes _before_ the child.


Field Summary
static java.lang.String NAME
           
 
Fields inherited from class com.pyxis.greenhopper.jira.util.collector.SimpleFieldCollector
fieldName, value
 
Fields inherited from class com.atlassian.jira.issue.statistics.util.DocumentHitCollector
searcher
 
Constructor Summary
MarkersCollector(org.apache.lucene.search.Searchable searcher, java.util.Set<Marker> markers)
           
 
Method Summary
 void doCollect(org.apache.lucene.document.Document d)
           
 java.lang.Object getValue()
           
 
Methods inherited from class com.pyxis.greenhopper.jira.util.collector.SimpleFieldCollector
collect, getFieldName
 
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
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

MarkersCollector

public MarkersCollector(org.apache.lucene.search.Searchable searcher,
                        java.util.Set<Marker> markers)
Method Detail

doCollect

public void doCollect(org.apache.lucene.document.Document d)
Specified by:
doCollect in class SimpleFieldCollector

getValue

public java.lang.Object getValue()
Overrides:
getValue in class SimpleFieldCollector


Copyright © 2007-2011 Atlassian. All Rights Reserved.