Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1651

[JS] Lazy row accessor in Table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.8.0
    • JavaScript

    Description

      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.

      Attachments

        Activity

          People

            paul.e.taylor Paul Taylor
            bhulette Brian Hulette
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: