Commits


Paul Taylor authored and Wes McKinney committed 527af63cde4
ARROW-1652: [JS] housekeeping, vector cleanup This PR addresses the first few issues in the [JS roadmap doc](https://docs.google.com/document/d/142dek89oM2TVI2Yql106Zo8IB1Ff_9zDg_EG6jPWS0M) I sent out a week or so ago. Sorry for the big PR, the housekeeping and vector cleanup work were pretty co-dependent. JIRA issues addressed by this PR: [ARROW-1032](https://issues.apache.org/jira/browse/ARROW-1032) - Support custom_metadata [ARROW-1651](https://issues.apache.org/jira/browse/ARROW-1651) - Lazy row accessor in Table [ARROW-1652](https://issues.apache.org/jira/browse/ARROW-1652) - Separate Vector into BatchVector and CompositeVector Tasks from the roadmap (some not in JIRA): ##### Housekeeping 1. Enable the strict-mode tsc compiler settings in the build 2. Compile mjs files for node 8.x ESModules 3. Compile ES6 UMD target with native iterators/generators ##### Vector 1. Refactor Vector types to primitive forms representing the portion of a column in a single RecordBatch 2. Add Column Vector that represents primitive Vectors across RecordBatches as an entire column 3. Refactor linear column-to-batch-index lookup in `Vector.get(i)` 4. Simplify inheritance hierarchy/generic types with Traits (e.g. Nullable, Iterable, and Typed numeric variants) ##### Table 1. Implement lazy row accessor 2. Share API/row logic with StructVector cc: @wesm @TheNeuralBit Author: Paul Taylor <paul.e.taylor@me.com> Closes #1273 from trxcllnt/vector-cleanup and squashes the following commits: c53d6de3 [Paul Taylor] refactor: rename vector mixins 2c83c823 [Paul Taylor] update to typescript@2.6.1 48c6ca48 [Paul Taylor] refactor: StructVector/Table#get always take numeric index, Table extends StructVector 18671edc [Paul Taylor] fix lint 04e9941d [Paul Taylor] refactor: use new compilation targets in perf tests bd7a8373 [Paul Taylor] refactor: update test's Arrow imports for new types 37b7f615 [Paul Taylor] refactor: update vector tests for new types 15ab8d4c [Paul Taylor] refactor: update table tests for new types db04a0b0 [Paul Taylor] refactor: export new Arrow types 84233dec [Paul Taylor] refactor reader to use new arrow types, fix strict TS compilation errors af4845d6 [Paul Taylor] refactor: add Arrow vector mixins 54fa2fd3 [Paul Taylor] refactor: break out virtual vector, move to types folder 2121bf1a [Paul Taylor] refactor: break out table, add Row type, move to types folder abc93310 [Paul Taylor] refactor: move struct to types folder 2a4127ce [Paul Taylor] refactor: move dictionary to types folder 607be424 [Paul Taylor] refactor: break out list/fixedsizelist/utf8, move to types folder b8a68665 [Paul Taylor] refactor: break out Typed vectors, move into types folder 0f8de75a [Paul Taylor] refactor: rename vector folder to types, move vector base class d2def198 [Paul Taylor] clean up build scripts, add ES2015 UMD and mjs targets 84b2c505 [Paul Taylor] use strict typescript compiler settings