You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Yury Gerzhedovich (JIRA)" <ji...@apache.org> on 2018/12/26 15:26:00 UTC

[jira] [Created] (IGNITE-10827) auto close iterator for query cursor when all data has been read

Yury Gerzhedovich created IGNITE-10827:
------------------------------------------

             Summary: 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


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 or when next() method of iterator throw any Exception. Such realization will be more safely and simple to use.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)