com.atlassian.greenhopper.web.rapid.chart
Class StatisticHistoryDataCallback

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.chart.StatisticHistoryDataCallback
All Implemented Interfaces:
IssueDataCallback

public class StatisticHistoryDataCallback
extends java.lang.Object
implements IssueDataCallback

This callback gathers various information about the issues it finds. - issueId and issueKey - the created date - the current statistics value


Nested Class Summary
static class StatisticHistoryDataCallback.BaseData
           
 
Constructor Summary
StatisticHistoryDataCallback(DocumentStatisticValueResolver documentStatisticValueResolver)
           
 
Method Summary
 void fieldData(java.lang.Long issueId, java.lang.String issueKey, java.lang.String fieldName, java.lang.String data)
          This callback is being called for every issue that matches the query.
 java.util.Set<StatisticHistoryDataCallback.BaseData> getBaseData()
           
 java.util.Set<java.lang.String> getFields()
          see DocumentConstants for possible values.
 void issueComplete(java.lang.Long issueId, java.lang.String issueKey)
          Called when all fieldData was returned for a single issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticHistoryDataCallback

public StatisticHistoryDataCallback(DocumentStatisticValueResolver documentStatisticValueResolver)
Method Detail

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.

Specified by:
getFields in interface IssueDataCallback

fieldData

public void fieldData(java.lang.Long issueId,
                      java.lang.String issueKey,
                      java.lang.String fieldName,
                      java.lang.String data)
Description copied from interface: IssueDataCallback
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.

Specified by:
fieldData in interface IssueDataCallback
fieldName - : The name of the field that this value belongs to. One of the fields specified in getFields(). See DocumentConstants for possible values.
data - : The raw Lucene data for the given field. Can be null.

issueComplete

public void issueComplete(java.lang.Long issueId,
                          java.lang.String issueKey)
Description copied from interface: IssueDataCallback
Called when all fieldData was returned for a single issue.

Specified by:
issueComplete in interface IssueDataCallback

getBaseData

public java.util.Set<StatisticHistoryDataCallback.BaseData> getBaseData()


Copyright © 2007-2012 Atlassian. All Rights Reserved.