Brian Hulette created ARROW-1651: ------------------------------------ Summary: [JS] Lazy row accessor in Table Key: ARROW-1651 URL: https://issues.apache.org/jira/browse/ARROW-1651 Project: Apache Arrow Issue Type: Improvement Components: JavaScript Reporter: Brian Hulette Priority: Minor
Right now the {{Table}} class has a {{*rows}} function for grabbing a series of rows, but the only available formats for the returned data are an Array and an Object for each row, which contain the value from every column. It would be useful to have the option to yield some kind of lazy accessor for each row, so that end users can only access the columns they are actually using. This would have caching benefits, and save us from doing dictionary lookups and/or string decodes on unused columns. I'm not sure exactly what form this accessor would take. Perhaps a function that accepts a column name/index? Or an array with a function for each column? Or maybe there's some other new JS pattern that could accomplish this. -- This message was sent by Atlassian JIRA (v6.4.14#64029)