com.atlassian.greenhopper.web.rapid.sprint
Class CreateSprintHelper.IssueKeysAndStatisticsCallback

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
      extended by com.atlassian.greenhopper.web.rapid.sprint.CreateSprintHelper.IssueKeysAndStatisticsCallback
All Implemented Interfaces:
IssueDataCallback
Enclosing class:
CreateSprintHelper

public static class CreateSprintHelper.IssueKeysAndStatisticsCallback
extends AbstractCompoundDataCallback

Gathers all issue keys as well as statistics field values up to (including) a lastIssue. Used to find all issues in sprint.


Constructor Summary
CreateSprintHelper.IssueKeysAndStatisticsCallback(SprintMarker sprintMarker, com.atlassian.fugue.Option<SprintMarker> previousSprintMarker, java.util.Comparator<Rankable> flatComparator, DocumentStatisticValueResolver documentStatisticValueResolver, EstimateStatisticService estimateStatisticService, RankableFactory rankableFactory)
           
 
Method Summary
protected  void fieldData(java.lang.Long issueId, java.lang.String issueKey, java.util.Map<java.lang.String,java.lang.String> data)
          This callback is being called for every issue that matches the query.
 int getCountNotEstimatedIssues()
           
 java.util.Set<java.lang.String> getFields()
          see DocumentConstants for possible values.
 java.util.List<java.lang.String> getIssueKeys()
           
 java.util.List<java.lang.String> getIssuesNotEstimated()
           
 double getStatsValue()
           
 
Methods inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
fieldData, issueComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateSprintHelper.IssueKeysAndStatisticsCallback

public CreateSprintHelper.IssueKeysAndStatisticsCallback(SprintMarker sprintMarker,
                                                         com.atlassian.fugue.Option<SprintMarker> previousSprintMarker,
                                                         java.util.Comparator<Rankable> flatComparator,
                                                         DocumentStatisticValueResolver documentStatisticValueResolver,
                                                         EstimateStatisticService estimateStatisticService,
                                                         RankableFactory rankableFactory)
Method Detail

fieldData

protected void fieldData(java.lang.Long issueId,
                         java.lang.String issueKey,
                         java.util.Map<java.lang.String,java.lang.String> data)
Description copied from class: AbstractCompoundDataCallback
This callback is being called for every issue that matches the query. For memory efficiency, try to avoid buffering all results in memory but rather stream them to the target object, like a REST template.

This is only called once per issue.

Specified by:
fieldData in class AbstractCompoundDataCallback
data - : The data from the document that matches our selected fields.

getFields

public java.util.Set<java.lang.String> getFields()
Description copied from interface: IssueDataCallback
see DocumentConstants for possible values. These are the issue fields that we want to read from the Lucene index.


getStatsValue

public double getStatsValue()

getCountNotEstimatedIssues

public int getCountNotEstimatedIssues()

getIssuesNotEstimated

public java.util.List<java.lang.String> getIssuesNotEstimated()

getIssueKeys

public java.util.List<java.lang.String> getIssueKeys()


Copyright © 2007-2013 Atlassian. All Rights Reserved.