You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2019/08/20 13:39:00 UTC

[jira] [Commented] (ARROW-6299) [C++] Simplify FileFormat classes to singletons

    [ https://issues.apache.org/jira/browse/ARROW-6299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16911364#comment-16911364 ] 

Wes McKinney commented on ARROW-6299:
-------------------------------------

I don't think so, but I'm not sure. 

> [C++] Simplify FileFormat classes to singletons
> -----------------------------------------------
>
>                 Key: ARROW-6299
>                 URL: https://issues.apache.org/jira/browse/ARROW-6299
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Benjamin Kietzman
>            Assignee: Benjamin Kietzman
>            Priority: Minor
>              Labels: dataset, datasets
>
> ParquetFileFormat has no state, so passing it around by shared_ptr<FileFormat> is not necessary; we could just keep a single static instance and pass raw pointers.
> [~wesmckinn] is there a case where a FileFormat might have state?



--
This message was sent by Atlassian Jira
(v8.3.2#803003)