Package com.atlassian.jira.issue.search
Class SearchStreamResults<T>
java.lang.Object
com.atlassian.jira.issue.search.SearchStreamResults<T>
- All Implemented Interfaces:
AutoCloseable
Search results, similar to
SearchResults, but as a Stream,
thus memory efficient for iterating a large number of results.
Make sure to close either this object, or the stream(), after you're done.
We recommend using a try-with-resource-block.
- Since:
- 10.6
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SearchStreamResults
-
-
Method Details
-
stream
-
close
public void close()Closes thestream(), which releases resources held in the underlying search platforms. You can no longer use the stream after it's closed.- Specified by:
closein interfaceAutoCloseable
-