-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Description
This is the second part of ARROW-5917. We provide a sort based encoder, as well as a hash table based encoder, to solve the problem with the current dictionary encoder.
In particular, we solve the following problems with the current encoder:
- There are repeated conversions between Java objects and bytes (e.g. vector.getObject(i)).
- Unnecessary memory copy (the vector data must be copied to the hash table).
- The hash table cannot be reused for encoding multiple vectors (other data structure & results cannot be reused either).
- The output vector should not be created/managed by the encoder (just like in the out-of-place sorter)
- The hash table requires that the hashCode & equals methods be implemented appropriately, but this is not guaranteed.
Reporter: Liya Fan / @liyafan82
Assignee: Liya Fan / @liyafan82
Related issues:
- [Java] Redesign the dictionary encoder (is related to)
PRs and other links:
Note: This issue was originally created as ARROW-6184. Please see the migration documentation for further details.