com.pyxis.greenhopper.jira.util.collector
Class MarkersCollector
java.lang.Object
org.apache.lucene.search.Collector
com.atlassian.jira.issue.statistics.util.DocumentHitCollector
com.pyxis.greenhopper.jira.util.collector.SimpleFieldCollector
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.atlassian.jira.issue.statistics.util.DocumentHitCollector |
searcher |
Constructor Summary |
MarkersCollector(org.apache.lucene.search.IndexSearcher 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.atlassian.jira.issue.statistics.util.DocumentHitCollector |
acceptsDocsOutOfOrder, collect, setNextReader, setScorer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
MarkersCollector
public MarkersCollector(org.apache.lucene.search.IndexSearcher searcher,
java.util.Set<Marker> markers)
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-2014 Atlassian. All Rights Reserved.