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

[Java] Refactor the code for TimeXXVectors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • Java

    Description

      This is based on the discussion in https://lists.apache.org/thread.html/836d3b87ccb6e65e9edf0f220829a29edfa394fc2cd1e0866007d86e@%3Cdev.arrow.apache.org%3E.

       

      The internals of TimeXXVectors are simply IntVector or BigIntVector. There are duplicated code for setting/getting int/long.

       

      We want to refactor the code by:

      1. push get/set methods into the base class BaseFixedWidthVector, and make them protected.
      2. The APIs in TimeXXVectors references the methods in the base class.

       

      Note that this issue not just reduce redundant code, it also centralizes the logics for getting/setting int/long, making them easy to maintain and change.

       

      If it looks good, later we will make other integer based vectors rely on the base class implementations. 

      Attachments

        Issue Links

          Activity

            People

              fan_li_ya Liya Fan
              fan_li_ya Liya Fan
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1.5h
                  1.5h