[ 
https://issues.apache.org/jira/browse/ARROW-6334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Micah Kornfield resolved ARROW-6334.
------------------------------------
    Fix Version/s: 0.15.0
       Resolution: Fixed

Issue resolved by pull request 5177
[https://github.com/apache/arrow/pull/5177]

> [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
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.15.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> 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