Class ParentIssueAndSubTaskCountCallback
java.lang.Object
com.atlassian.greenhopper.service.issue.callback.ParentIssueAndSubTaskCountCallback
- All Implemented Interfaces:
IssueDataCallback
Collects the amount of parent issues and subtasks matched.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis callback is being called for every issue that matches the query.see DocumentConstants for possible values.booleanvoidissueComplete(Long issueId, String issueKey, io.atlassian.fugue.Option<org.apache.lucene.document.Document> issueDoc) Called when all fieldData was returned for a single issue.booleanDoes this callback require a full Lucene issue document.
-
Constructor Details
-
ParentIssueAndSubTaskCountCallback
public ParentIssueAndSubTaskCountCallback()
-
-
Method Details
-
getFields
Description copied from interface:IssueDataCallbacksee DocumentConstants for possible values. These are the issue fields that we want to read from the Lucene index.- Specified by:
getFieldsin interfaceIssueDataCallback
-
requiresIssueDoc
public boolean requiresIssueDoc()Description copied from interface:IssueDataCallbackDoes this callback require a full Lucene issue document.- Specified by:
requiresIssueDocin interfaceIssueDataCallback
-
fieldData
Description copied from interface:IssueDataCallbackThis 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:
fieldDatain interfaceIssueDataCallbackfieldName- : 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(Long issueId, String issueKey, io.atlassian.fugue.Option<org.apache.lucene.document.Document> issueDoc) Description copied from interface:IssueDataCallbackCalled when all fieldData was returned for a single issue.- Specified by:
issueCompletein interfaceIssueDataCallback- Parameters:
issueId- is the issue idissueKey- is the issue keyissueDoc- is an optional Lucene issue document
-
isExclusivelySubTasks
public boolean isExclusivelySubTasks()
-