[
https://issues.apache.org/jira/browse/ARROW-13663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456692#comment-17456692
]
Dhruv Vats edited comment on ARROW-13663 at 12/13/21, 5:11 PM:
---------------------------------------------------------------
Because the {{RecordBatchReader}} is an abstract class, is there a
straightforward way to define STL like iterators for it?
I tried using {{{}shared_ptr as given in Iterator<T>{}}}, but can't use them as
the class is abstract. Does something like {{shared_from_this()}} have to be
used? [~apitrou]
was (Author: dhruv9vats):
Because the {{RecordBatchReader}} is an abstract class, is there a
straightforward way to define STL like iterators for it?
I tried using {{{}shared_ptr as given in Iterator<T>{}}}, but can't use them as
the class is abstract. Does something like {{shared_from_this()}} have to be
used?
> [C++] RecordBatchReader should support STL-like iteration
> ---------------------------------------------------------
>
> Key: ARROW-13663
> URL: https://issues.apache.org/jira/browse/ARROW-13663
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Antoine Pitrou
> Assignee: Dhruv Vats
> Priority: Major
> Labels: beginner, easy, good-first-issue
> Fix For: 7.0.0
>
>
> Our custom {{Iterator<T>}} has support for STL-like iteration (allowing
> natural for loops), but {{RecordBatchReader}} doesn't. Adding STL-like
> iteration would be a significant quality of life improvement for developers
--
This message was sent by Atlassian Jira
(v8.20.1#820001)