lidavidm commented on a change in pull request #9613:
URL: https://github.com/apache/arrow/pull/9613#discussion_r587452478



##########
File path: cpp/src/arrow/io/caching.h
##########
@@ -99,6 +100,9 @@ class ARROW_EXPORT ReadRangeCache {
   /// \brief Read a range previously given to Cache().
   Result<std::shared_ptr<Buffer>> Read(ReadRange range);
 
+  /// \brief Wait until all ranges added so far have been cached.
+  Future<> Wait();

Review comment:
       The idea here is to cleanly separate out the I/O operations so you can 
schedule them on different executors. With a ReadAsync, you wouldn't be able to 
accomplish that unless you went and refactored the entire Parquet reader so 
that it was fully async-aware.




----------------------------------------------------------------
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.

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


Reply via email to