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 2021/07/30 19:16:10 UTC

[GitHub] [arrow] pi-guy-in-the-sky opened a new issue #10844: Getting an `std::istream` from an `arrow::io::InputStream`

pi-guy-in-the-sky opened a new issue #10844:
URL: https://github.com/apache/arrow/issues/10844


   I'm currently working on a tool in C++ which needs to fetch data from an S3 bucket. Calling `arrow::fs::S3FileSystem::OpenInputStream` allows me to get an `arrow::io::InputStream` that can read from the file. However, an external library in my application needs to read from the file through an `std::istream`. Is there any way I can get an `std::istream` from an `arrow::io::InputStream`?


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



[GitHub] [arrow] westonpace commented on issue #10844: Getting an `std::istream` from an `arrow::io::InputStream`

Posted by GitBox <gi...@apache.org>.
westonpace commented on issue #10844:
URL: https://github.com/apache/arrow/issues/10844#issuecomment-893109974


   No.  It also might be a bit tricky to build one effectively using just STL.  You could wrap the buffers in `stringstream` but that does a copy.  I think Boost has some [utilities](https://www.boost.org/doc/libs/1_73_0/libs/iostreams/doc/guide/generic_streams.html) which might help.  @pitrou Any ideas?


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



[GitHub] [arrow] pitrou commented on issue #10844: Getting an `std::istream` from an `arrow::io::InputStream`

Posted by GitBox <gi...@apache.org>.
pitrou commented on issue #10844:
URL: https://github.com/apache/arrow/issues/10844#issuecomment-893232509


   We may also want to expose such a facility in Arrow, provided someone contributes it.


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



[GitHub] [arrow] westonpace commented on issue #10844: Getting an `std::istream` from an `arrow::io::InputStream`

Posted by GitBox <gi...@apache.org>.
westonpace commented on issue #10844:
URL: https://github.com/apache/arrow/issues/10844#issuecomment-893109974


   No.  It also might be a bit tricky to build one effectively using just STL.  You could wrap the buffers in `stringstream` but that does a copy.  I think Boost has some [utilities](https://www.boost.org/doc/libs/1_73_0/libs/iostreams/doc/guide/generic_streams.html) which might help.  @pitrou Any ideas?


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



[GitHub] [arrow] pitrou commented on issue #10844: Getting an `std::istream` from an `arrow::io::InputStream`

Posted by GitBox <gi...@apache.org>.
pitrou commented on issue #10844:
URL: https://github.com/apache/arrow/issues/10844#issuecomment-893231807


   No further idea. It seems the Boost page you linked to might help.


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



[GitHub] [arrow] westonpace closed issue #10844: Getting an `std::istream` from an `arrow::io::InputStream`

Posted by GitBox <gi...@apache.org>.
westonpace closed issue #10844:
URL: https://github.com/apache/arrow/issues/10844


   


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



[GitHub] [arrow] pitrou commented on issue #10844: Getting an `std::istream` from an `arrow::io::InputStream`

Posted by GitBox <gi...@apache.org>.
pitrou commented on issue #10844:
URL: https://github.com/apache/arrow/issues/10844#issuecomment-893231807






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