You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/11 20:10:28 UTC

[GitHub] [arrow] lwhite1 commented on issue #13445: Get value of any vector for a given row

lwhite1 commented on issue #13445:
URL: https://github.com/apache/arrow/issues/13445#issuecomment-1180820118

   Hi @iamsmkr, 
   
   I'm not really sure what you're looking to do. The BigIntVector class implements a version of get(int) that returns a long rather than int (since it's a BIG int vector). The only way to map over the three types would be to use long as the return type. 
   
   ```
      List<Long> rowData = vectors.map(v -> v.get(row)).boxed().collect(Collectors.toList());
   ```
   
   I didn't attempt to compile that, as I'm not entirely sure I'm answering the right question. It might need some tweaking. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org