[ https://issues.apache.org/jira/browse/IGNITE-10827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vyacheslav Koptilin updated IGNITE-10827: ----------------------------------------- Description: There is QueryCursorImpl class which we use as the main realization of a cursor for H2 iterators. As of now, we call the close method explicitly when we suppose that all data already read. It will be better to call the close() method when iterator hasNext() method returns false. Such a realization will be safer and easier to use. (was: There is QueryCursorImpl class which we use as main realization of cursor for H2 iterators. As of now we call close method explicit when we suppose that all data already read. Will be better call close() method when iterator hasNext() method return false. Such realization will be more safely and simple to use.) > Auto close iterator for query cursor when all data has been read > ---------------------------------------------------------------- > > Key: IGNITE-10827 > URL: https://issues.apache.org/jira/browse/IGNITE-10827 > Project: Ignite > Issue Type: Task > Components: sql > Reporter: Yury Gerzhedovich > Assignee: Yury Gerzhedovich > Priority: Major > Labels: sql > Fix For: 2.8 > > Time Spent: 10m > Remaining Estimate: 0h > > There is QueryCursorImpl class which we use as the main realization of a > cursor for H2 iterators. As of now, we call the close method explicitly when > we suppose that all data already read. It will be better to call the close() > method when iterator hasNext() method returns false. Such a realization will > be safer and easier to use. -- This message was sent by Atlassian JIRA (v7.6.3#76005)