Liya Fan created ARROW-6334:
-------------------------------

             Summary: [Java] Improve the dictionary builder API to return the 
position of the value in the dictionary
                 Key: ARROW-6334
                 URL: https://issues.apache.org/jira/browse/ARROW-6334
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Java
            Reporter: Liya Fan
            Assignee: Liya Fan


This is an improvement of the {{addValue}} method.

Previously, the method returns a boolean, indicating if the value has been 
successfully added to the dictionary.

After the change, the method returns an integer, which is the position of the 
value in the dictionary.

The purpose of this change:
 # the dictionary position contains more information, compared with a boolean 
indicating if the value is added successfully.
 # this information about the index in the dictionary can be useful, for 
example, to collect statistics about the dictionary.

With the dictionary position, the information about if a value has been added 
can be easily determined.



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

Reply via email to