Interface IssueDataCallback
- All Known Subinterfaces:
IssueCompoundDataCallback
- All Known Implementing Classes:
AbstractCardColorCallback
,AbstractColumnStatisticsCallback
,AbstractCompoundDataCallback
,AbstractIssueDataCallback
,AssigneeCardColorCallback
,ClassificationStatisticCallback
,ComposedIssueDataCallback
,EpicHistoryDataCollector
,EpicLabelAndKeyMatchingCallback
,EpicStatisticCallback
,EstimatableIssueDataCallback
,IssueAndParentKeyCallback
,IssueCountExcludingSubTasksStatisticsCallback
,IssueCountStatisticsCallback
,IssueIdCallback
,IssueSummaryCallback
,IssueTypeCardColorCallback
,JiraFieldStatisticsCallback
,ParentIssueAndSubTaskCountCallback
,ParentSwimlanesDataCallback
,PriorityCardColorCallback
,ProjectIssueDataCallback
,ProjectsCallback
,RapidIssueEntryCallback
,SprintAndIssueIdsCallback
,SprintAndProjectsCallback
,SprintHistoryDataCollector
,SprintIdCallback
,StartSprintHelper.IssueKeysAndStatisticsCallback
,StatisticFieldAggregationCallback
,StatisticHistoryDataCallback
,StatusCountCallback
,StatusProgressCallback
,VersionStatisticCallback
public interface IssueDataCallback
Abstraction for fetching a limited number of issue field values from Lucene.
- Author:
- ahennecke
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This callback is being called for every issue that matches the query.see DocumentConstants for possible values.void
issueComplete
(Long issueId, String issueKey, io.atlassian.fugue.Option<org.apache.lucene.document.Document> issueDoc) Called when all fieldData was returned for a single issue.boolean
Does this callback require a full Lucene issue document.
-
Method Details
-
getFields
see DocumentConstants for possible values. These are the issue fields that we want to read from the Lucene index. -
requiresIssueDoc
boolean requiresIssueDoc()Does this callback require a full Lucene issue document. -
fieldData
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.- Parameters:
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
void issueComplete(Long issueId, String issueKey, io.atlassian.fugue.Option<org.apache.lucene.document.Document> issueDoc) Called when all fieldData was returned for a single issue.- Parameters:
issueId
- is the issue idissueKey
- is the issue keyissueDoc
- is an optional Lucene issue document
-