Class SearchStreamResponse
java.lang.Object
com.atlassian.jira.search.response.SearchStreamResponse
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionSearchStreamResponse(Stream<SearchHit> hits, AggregationsResponse aggregations) -
Method Summary
-
Constructor Details
-
SearchStreamResponse
-
-
Method Details
-
getHits
-
getAggregations
-
close
public void close()Closes thegetHits()stream, which releases resources held in the underlying search platforms. You can no longer use the stream after it's closed.- Specified by:
closein interfaceAutoCloseable
-