[ https://issues.apache.org/jira/browse/ARROW-5883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ji Liu updated ARROW-5883: -------------------------- Description: As described in [http://arrow.apache.org/docs/format/Layout.html#dictionary-encoding], List type encoding should be supported. Now ListVector getObject returns a ArrayList implementation, and its equals and hashCode are already overwritten, so it could be directly supported to be hashMap key in DictionaryEncoder. Since we won't change Dictionary data during encoding/decoding process, use mutable key seems dose't matter. StructVector is similar with ListVector. was: As described in [http://arrow.apache.org/docs/format/Layout.html#dictionary-encoding], List type encoding should be supported. Now ListVector getObject returns a ArrayList implementation, and its equals and hashCode are already overwritten, so it could be directly supported to be hashMap key in DictionaryEncoder. Since we won't change Dictionary data during encoding/decoding process, use mutable key seems dose't matter. > [Java] Support dictionary encoding for List and Struct type > ----------------------------------------------------------- > > Key: ARROW-5883 > URL: https://issues.apache.org/jira/browse/ARROW-5883 > Project: Apache Arrow > Issue Type: Improvement > Components: Java > Reporter: Ji Liu > Assignee: Ji Liu > Priority: Minor > Labels: pull-request-available > Time Spent: 20m > Remaining Estimate: 0h > > As described in > [http://arrow.apache.org/docs/format/Layout.html#dictionary-encoding], List > type encoding should be supported. > Now ListVector getObject returns a ArrayList implementation, and its equals > and hashCode are already overwritten, so it could be directly supported to be > hashMap key in DictionaryEncoder. Since we won't change Dictionary data > during encoding/decoding process, use mutable key seems dose't matter. > StructVector is similar with ListVector. -- This message was sent by Atlassian JIRA (v7.6.3#76005)