Class SearchStreamResponse

java.lang.Object
com.atlassian.jira.search.response.SearchStreamResponse
All Implemented Interfaces:
AutoCloseable

@PublicApi public class SearchStreamResponse extends Object implements AutoCloseable
The response of IndexSearcher.searchStream(SearchRequest).

Make sure to close either this object, or the getHits() stream, after you're done. We recommend using a try-with-resource-block.

Since:
10.6
  • Constructor Details

  • Method Details

    • getHits

      public Stream<SearchHit> getHits()
    • getAggregations

      public AggregationsResponse getAggregations()
    • close

      public void close()
      Closes the getHits() stream, which releases resources held in the underlying search platforms. You can no longer use the stream after it's closed.
      Specified by:
      close in interface AutoCloseable