You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Todd Farmer (Jira)" <ji...@apache.org> on 2022/07/12 14:05:02 UTC

[jira] [Assigned] (ARROW-4146) [C++] Extend visitor functions to include ArrayBuilder and allow callable visitors

     [ https://issues.apache.org/jira/browse/ARROW-4146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Farmer reassigned ARROW-4146:
----------------------------------

    Assignee:     (was: Ben Kietzman)

This issue was last updated over 90 days ago, which may be an indication it is no longer being actively worked. To better reflect the current state, the issue is being unassigned. Please feel free to re-take assignment of the issue if it is being actively worked, or if you plan to start that work soon.

> [C++] Extend visitor functions to include ArrayBuilder and allow callable visitors
> ----------------------------------------------------------------------------------
>
>                 Key: ARROW-4146
>                 URL: https://issues.apache.org/jira/browse/ARROW-4146
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Ben Kietzman
>            Priority: Minor
>
> In addition to accepting objects with Visit methods for the visited type, {{Visit(Array|Type)}} and {{Visit(Array|Type)Inline}} should accept objects with overloaded call operators.
> In addition for inline visitation if a visitor can only visit one of the potential unboxings then this can be detected at compile time and the full type_id switch can be avoided (if the unboxed object cannot be visited then do nothing). For example:
> {code}
> VisitTypeInline(some_type, [](const StructType& s) {
>   // only execute this if some_type.id() == Type::STRUCT
> });
> {code}
> Finally, visit functions should be added for visiting ArrayBuilders



--
This message was sent by Atlassian Jira
(v8.20.10#820010)