com.atlassian.greenhopper.service.issue.callback
Class VisitingIssueIdCallback

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
      extended by com.atlassian.greenhopper.service.issue.callback.IssueIdCallback
          extended by com.atlassian.greenhopper.service.issue.callback.VisitingIssueIdCallback
All Implemented Interfaces:
IssueDataCallback

public class VisitingIssueIdCallback
extends IssueIdCallback

An extension of IssueIdCallback which also keeps track of issues which have already been collected. This is useful when running multiple queries with potentially overlapping issues.


Constructor Summary
VisitingIssueIdCallback(java.util.Set<java.lang.Long> visitedIssues)
           
 
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.
 
Methods inherited from class com.atlassian.greenhopper.service.issue.callback.IssueIdCallback
getFields, getIssueIds
 
Methods inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
issueComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisitingIssueIdCallback

public VisitingIssueIdCallback(java.util.Set<java.lang.Long> visitedIssues)
Method Detail

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
Overrides:
fieldData in class IssueIdCallback
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.


Copyright © 2007-2012 Atlassian. All Rights Reserved.