Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
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:
- push get/set methods into the base class BaseFixedWidthVector, and make them protected.
- 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
- links to