Rearrange code by array type (#39)
authorJacob Quinn <quinn.jacobd@gmail.com>
Wed, 14 Oct 2020 14:19:17 +0000 (08:19 -0600)
committerGitHub <noreply@github.com>
Wed, 14 Oct 2020 14:19:17 +0000 (08:19 -0600)
commita53da475bedc46f33a59b9609e88cad80b9e58a6
treef20f299f107ce90cd1aac20a52c48d263bf0c3cc
parente75aeff4ae37e9fcd4d548d21fd30adf76325179
Rearrange code by array type (#39)

Code for the various array types was a little all over the place. This
PR consolidates arraytype-specific code into new per-arraytype files.
This also simplifies a few things I noticed reviewing the code: removing
unnecessary utils, stop passing eltypes to arraytype-specific
`arrowvector` methods, reuse `ToList` for `MapType` and get rid of
`ToMap`, and clarify a few of the ArrowTypes interfaces. This should
simplify things a bit for adding support for bitpacked Bool arrays and
supporting CategoricalArrays.
16 files changed:
src/Arrow.jl
src/arraytypes.jl [deleted file]
src/arraytypes/arraytypes.jl [new file with mode: 0644]
src/arraytypes/compressed.jl [new file with mode: 0644]
src/arraytypes/dictencoding.jl [new file with mode: 0644]
src/arraytypes/fixedsizelist.jl [new file with mode: 0644]
src/arraytypes/list.jl [new file with mode: 0644]
src/arraytypes/map.jl [new file with mode: 0644]
src/arraytypes/primitive.jl [new file with mode: 0644]
src/arraytypes/struct.jl [new file with mode: 0644]
src/arraytypes/unions.jl [new file with mode: 0644]
src/arrowtypes.jl
src/eltypes.jl
src/utils.jl
src/write.jl
test/arrowjson.jl