Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 43739200C49 for ; Fri, 17 Mar 2017 14:34:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 41BF1160B8C; Fri, 17 Mar 2017 13:34:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8BD8E160B6D for ; Fri, 17 Mar 2017 14:34:51 +0100 (CET) Received: (qmail 49971 invoked by uid 500); 17 Mar 2017 13:34:43 -0000 Mailing-List: contact dev-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@arrow.apache.org Delivered-To: mailing list dev@arrow.apache.org Received: (qmail 49959 invoked by uid 99); 17 Mar 2017 13:34:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2017 13:34:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 678A91A0354 for ; Fri, 17 Mar 2017 13:34:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fgpgqDy6ODv0 for ; Fri, 17 Mar 2017 13:34:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 615D05F46F for ; Fri, 17 Mar 2017 13:34:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DF582E06B9 for ; Fri, 17 Mar 2017 13:34:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 96522254B7 for ; Fri, 17 Mar 2017 13:34:41 +0000 (UTC) Date: Fri, 17 Mar 2017 13:34:41 +0000 (UTC) From: "Uwe L. Korn (JIRA)" To: dev@arrow.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARROW-602) C++: Provide iterator access to primitive elements inside a Column/ChunkedArray MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Mar 2017 13:34:52 -0000 [ https://issues.apache.org/jira/browse/ARROW-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15929977#comment-15929977 ] Uwe L. Korn commented on ARROW-602: ----------------------------------- A chunked array is just a collection of arrays of the same type, so we should be able to construct instances of {{std::iterator}}. The iterator would then iterate over all the values in all these underlying arrays. As Arrow arrays are nullable, the iterator must either be on {{std::pair}} or we would have to specify that the iterator only iterates over all non-null values. > C++: Provide iterator access to primitive elements inside a Column/ChunkedArray > ------------------------------------------------------------------------------- > > Key: ARROW-602 > URL: https://issues.apache.org/jira/browse/ARROW-602 > Project: Apache Arrow > Issue Type: Improvement > Components: C++ > Reporter: Uwe L. Korn > Labels: beginner, newbie > > Given a ChunkedArray, an Arrow user must currently iterate over all its chunks and then cast them to their types to extract the primitive memory regions to access the values. A convenient way to access the underlying values would be to offer a function that takes a ChunkedArray and returns a C++ iterator over all elements. > While this may not be the most performant way to access the underlying data, it should have sufficient performance and adds a convenience layer for new users. -- This message was sent by Atlassian JIRA (v6.3.15#6346)