Wes McKinney created ARROW-5991:
-----------------------------------

             Summary: [C++] Does DictionaryBuilder<T> need to be a subclass of 
ArrayBuilder? 
                 Key: ARROW-5991
                 URL: https://issues.apache.org/jira/browse/ARROW-5991
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Wes McKinney


I note that {{DictionaryBuilder<T>}} is book-keeping properties both in 
{{values_builder_}} as well as itself, such as {{length_}} and {{null_count_}}. 

There are two possibilities:

* DictionaryBuilder need not be a subclass of ArrayBuilder
* A common abstract base for builders could be defined to allow properties like 
{{length_}} to be forwarded by virtual overrides



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to