com.atlassian.greenhopper.service.issue.callback
Class RapidViewStatisticsCallback
java.lang.Object
com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
com.atlassian.greenhopper.service.issue.callback.IssueCountAndLastUpdatedCallback
com.atlassian.greenhopper.service.issue.callback.RapidViewStatisticsCallback
- All Implemented Interfaces:
- IssueDataCallback
public class RapidViewStatisticsCallback
- extends IssueCountAndLastUpdatedCallback
Callback which will retrieve the value of the StatisticsFieldConfig
on each Issue
that is collected, and accumulate those values per column of the specified RapidView
.
- Author:
- mtokar
Method Summary |
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. |
java.util.Set<java.lang.String> |
getFields()
see DocumentConstants for possible values. |
java.util.Map<Column,java.lang.Double> |
getStatisticsValuesByColumn()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RapidViewStatisticsCallback
public RapidViewStatisticsCallback(RapidView rapidView,
StatisticsFieldConfig statisticsField,
java.util.Map<java.lang.String,Column> columnsByStatusId)
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
- Overrides:
getFields
in class IssueCountAndLastUpdatedCallback
fieldData
public 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.
- Overrides:
fieldData
in class IssueCountAndLastUpdatedCallback
data
- : The data from the document that matches our selected fields.
getStatisticsValuesByColumn
public java.util.Map<Column,java.lang.Double> getStatisticsValuesByColumn()
Copyright © 2007-2012 Atlassian. All Rights Reserved.