You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Liya Fan (Jira)" <ji...@apache.org> on 2019/08/23 10:28:00 UTC

[jira] [Created] (ARROW-6334) [Java] Improve the dictionary builder API to return the position of the value in the dictionary

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)