Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6334

[Java] Improve the dictionary builder API to return the position of the value in the dictionary

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • Java

    Description

      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:

      1. the dictionary position contains more information, compared with a boolean indicating if the value is added successfully.
      2. 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.

      Attachments

        Issue Links

          Activity

            People

              fan_li_ya Liya Fan
              fan_li_ya Liya Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m

                  Slack

                    Issue deployment