@NotThreadSafe public final class

LuceneCommentIterator

extends Object
implements CommentIterator
java.lang.Object
   ↳ com.atlassian.jira.issue.comments.util.LuceneCommentIterator

Class Overview

This class iterates across a series of comment hits from the comment index.

Summary

Public Constructors
LuceneCommentIterator(ApplicationUser user, CommentService commentService, TopDocs hits, IndexSearcher searcher)
Public Methods
void close()
boolean hasNext()
Comment next()
Comment nextComment()
void remove()
int size()
Returns the total number of comments this iterator contains.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.comments.util.CommentIterator
From interface java.util.Iterator

Public Constructors

public LuceneCommentIterator (ApplicationUser user, CommentService commentService, TopDocs hits, IndexSearcher searcher)

Public Methods

public void close ()

public boolean hasNext ()

public Comment next ()

public Comment nextComment ()

public void remove ()

public int size ()

Returns the total number of comments this iterator contains.

Returns
  • the total number of comments this iterator contains.