-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-2184: [C++] Add static constructor for FileOutputStream returning shared_ptr to OutputStream #1642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Just rebased this, please |
xhochy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM.
I would like to keep the more specific ones as they are nice to have if you work in a more strongly typed, pure C++ environment.
| /// \param[in] append append to existing file, otherwise truncate to 0 bytes | ||
| /// \param[out] out a base interface OutputStream instance | ||
| static Status Open(const std::string& path, bool append, | ||
| std::shared_ptr<OutputStream>* out); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need some unit tests for these. We should also change the Python bindings to use these APIs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to change the Python bindings in this pull request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed a commit here to make the change, so we're good now
Change-Id: I4fe462e126292de1a954ca735cb2aaf02ead0e53
|
+1. Will merge once the build is green. Thanks! |
Add constructors to return pointers to the base interface