Class LuceneCommentIterator
java.lang.Object
com.atlassian.jira.issue.comments.util.LuceneCommentIterator
- All Implemented Interfaces:
CommentIterator,Iterator<Comment>
@NotThreadSafe
@Deprecated(since="10.4",
forRemoval=true)
public final class LuceneCommentIterator
extends Object
implements CommentIterator
Deprecated, for removal: This API element is subject to removal in a future version.
This class iterates across a series of comment hits from the comment index.
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneCommentIterator(ApplicationUser user, CommentService commentService, org.apache.lucene.search.TopDocs hits, ManagedIndexSearcher searcher) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasNext()Deprecated, for removal: This API element is subject to removal in a future version.next()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.voidremove()Deprecated, for removal: This API element is subject to removal in a future version.intsize()Deprecated, for removal: This API element is subject to removal in a future version.Returns the total number of comments this iterator contains.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
LuceneCommentIterator
public LuceneCommentIterator(ApplicationUser user, CommentService commentService, org.apache.lucene.search.TopDocs hits, ManagedIndexSearcher searcher) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
hasNext
public boolean hasNext()Deprecated, for removal: This API element is subject to removal in a future version. -
nextComment
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nextCommentin interfaceCommentIterator
-
close
public void close()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
closein interfaceCommentIterator
-
next
Deprecated, for removal: This API element is subject to removal in a future version. -
remove
public void remove()Deprecated, for removal: This API element is subject to removal in a future version. -
size
public int size()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CommentIteratorReturns the total number of comments this iterator contains.- Specified by:
sizein interfaceCommentIterator- Returns:
- the total number of comments this iterator contains.
-
DefaultCommentIteratorinstead.