[
https://issues.apache.org/jira/browse/ARROW-5508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16917771#comment-16917771
]
Benjamin Kietzman commented on ARROW-5508:
------------------------------------------
I think the existing interface is sufficient for our current use cases.
WRT easier iteration, we currently have {{Iterator<T>::Visit}}:
{code}
ASSERT_OK(iter.Visit([&](T v) {
doSomethingWith(v);
return Status::OK();
}));
{code}
> [C++] Create reusable Iterator<T> interface
> --------------------------------------------
>
> Key: ARROW-5508
> URL: https://issues.apache.org/jira/browse/ARROW-5508
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Wes McKinney
> Priority: Major
> Fix For: 0.15.0
>
>
> We have various iterator-like classes. I envision a reusable interface like
> {code}
> template <typename T>
> class Iterator {
> public:
> virtual ~Iterator() = default;
> virtual Status Next(T* out) = 0;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)