steveloughran commented on issue #2205:
URL: 
https://github.com/apache/arrow-datafusion/issues/2205#issuecomment-1100073404

   + @mukund-thakur
   
   if the api you came up with mapped well to that vectored api *which is not 
yet too late to freeze*, then it'd be really good, even if you don't yet 
compile against releases with that api.
   
   see 
https://github.com/apache/hadoop/blob/feature-vectored-io/hadoop-common-project/hadoop-common/src/site/markdown/filesystem/fsdatainputstream.md#default-void-readvectoredlist-extends-filerange-ranges-intfunctionbytebuffer-allocate
   
   ```java
   readVectored(List<? extends FileRange> ranges, IntFunction<ByteBuffer> 
allocate)
   ```
   
   where each file range returns a completable future to a byte buffer 
allocated with the allocator function you supplied.


-- 
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-unsubscr...@arrow.apache.org

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

Reply via email to