Class AbstractColumnStatisticsCallback
java.lang.Object
com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
com.atlassian.greenhopper.service.issue.callback.AbstractColumnStatisticsCallback
- All Implemented Interfaces:
IssueDataCallback,RapidIssueEntryCallbackComponent
- Direct Known Subclasses:
IssueCountExcludingSubTasksStatisticsCallback,IssueCountStatisticsCallback,JiraFieldStatisticsCallback
public abstract class AbstractColumnStatisticsCallback
extends AbstractCompoundDataCallback
implements RapidIssueEntryCallbackComponent
Common parent class for callbacks which accumulate column constraint statistics. All column statistic callbacks
accumulate values per column of a board.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfieldData(Long issueId, String issueKey, IssueFieldValueProvider data) This callback is being called for every issue that matches the query.Get the lucene fields required by this componentprotected abstract DoublegetStatisticsValue(Long issueId, String issueKey, IssueFieldValueProvider data) Compute the statistics value for this column constraint based on the document data.voidprocessFieldData(Long issueId, String issueKey, IssueFieldValueProvider data, RapidIssueEntry entry) ImplementingRapidIssueEntryCallbackComponent.processFieldData(Long, String, IssueFieldValueProvider, com.atlassian.greenhopper.web.rapid.list.RapidIssueEntry)so that we can store the column constraint statistic value for this issue against theRapidIssueEntry.Methods inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
fieldData, issueComplete, requiresIssueDoc
-
Constructor Details
-
AbstractColumnStatisticsCallback
-
-
Method Details
-
getFields
Description copied from interface:RapidIssueEntryCallbackComponentGet the lucene fields required by this component- Specified by:
getFieldsin interfaceIssueDataCallback- Specified by:
getFieldsin interfaceRapidIssueEntryCallbackComponent
-
fieldData
Description copied from class:AbstractCompoundDataCallbackThis 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:
fieldDatain classAbstractCompoundDataCallbackdata- : The data from the document that matches our selected fields.
-
processFieldData
public void processFieldData(Long issueId, String issueKey, IssueFieldValueProvider data, RapidIssueEntry entry) ImplementingRapidIssueEntryCallbackComponent.processFieldData(Long, String, IssueFieldValueProvider, com.atlassian.greenhopper.web.rapid.list.RapidIssueEntry)so that we can store the column constraint statistic value for this issue against theRapidIssueEntry.- Specified by:
processFieldDatain interfaceRapidIssueEntryCallbackComponent- Parameters:
issueId- the issue IDissueKey- the issue keydata- the data map for the documententry- the entry to update
-
getStatisticsValue
@Nonnull protected abstract Double getStatisticsValue(Long issueId, String issueKey, IssueFieldValueProvider data) Compute the statistics value for this column constraint based on the document data.- Parameters:
issueId- issue IDissueKey- issue Keydata- all document data- Returns:
- the value
-
getStatisticsValuesByColumn
-