Hello, > I would like to know will resource be closed after I iterate over the Cursor? Well, the answer is yes, the cursor will be closed (the underlying iterator is wrapped by org.apache.ignite.internal.processors.cache.AutoClosableCursorIterator). Please take into account that this behavior is implementation details and it can be changed. So, I think the best choice would be to explicitly close the cursor using close()/try-with-resources statement.
Thanks, S. чт, 11 апр. 2019 г. в 11:55, Justin Ji <[email protected]>: > One more question. > > According to the org.apache.ignite.cache.query.QueryCursor.getAll API, I > know that the resources will be closed automatically since all results are > fetched. > > > I would like to know will resources be closed after I iterate over the > Cursor? > > The reason why I ask this question is that in my test case I can not > reproduce this issue if I iterate over all the records returned by SQL > query. > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
