You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/28 16:00:48 UTC

[GitHub] [arrow] lidavidm commented on pull request #13009: ARROW-602: [C++] Provide iterator access to primitive elements inside an Array

lidavidm commented on PR #13009:
URL: https://github.com/apache/arrow/pull/13009#issuecomment-1112384179

   > > That wouldn't work, because there are no specialized subclasses of ChunkedArray. We want the iterator to yield raw C values whose type is datatype-specific.
   > 
   > ...I still think it can work for the `Array` types that currently support iteration (std::enable_if magic). The `ChunkedArrayIterator` in this PR can extract raw C values from a `ChunkedArray` so I am not suggesting something different.
   
   Er, you simply can't implement `begin` right? It would have to be
   
   ```
   template <typename Type>
   ChunkedArrayIterator<Type> begin() const;
   ```
   
   which is a little clumsy


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org