You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dhruv Vats (Jira)" <ji...@apache.org> on 2021/12/09 19:27:00 UTC
[jira] [Comment Edited] (ARROW-13663) [C++] RecordBatchReader should support STL-like iteration
[ 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/9/21, 7:26 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?
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)