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.
since 10.4. Use DefaultCommentIterator instead.
This class iterates across a series of comment hits from the comment index.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    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.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    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, wait

    Methods 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.
      Specified by:
      hasNext in interface Iterator<Comment>
    • nextComment

      public Comment nextComment()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      nextComment in interface CommentIterator
    • close

      public void close()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      close in interface CommentIterator
    • next

      public Comment next()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      next in interface Iterator<Comment>
    • remove

      public void remove()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      remove in interface Iterator<Comment>
    • size

      public int size()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CommentIterator
      Returns the total number of comments this iterator contains.
      Specified by:
      size in interface CommentIterator
      Returns:
      the total number of comments this iterator contains.