[ https://issues.apache.org/jira/browse/ARROW-4146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661170#comment-17661170 ]
Rok Mihevc commented on ARROW-4146: ----------------------------------- This issue has been migrated to [issue #20732|https://github.com/apache/arrow/issues/20732] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [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)