Skip to content

Conversation

@xuepanchen
Copy link
Contributor

Add constructors to return pointers to the base interface

@wesm
Copy link
Member

wesm commented Feb 21, 2018

Just rebased this, please

git fetch origin
git reset --hard origin/ARROW-2184

Copy link
Member

@xhochy xhochy left a 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.

@wesm wesm changed the title ARROW-2184: [C++] Add static ctor for FileOutputStream returning shared_ptr to base OutputStream ARROW-2184: [C++] Add static constructor for FileOutputStream returning shared_ptr to OutputStream Feb 22, 2018
/// \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);
Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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

xuepanchen and others added 2 commits February 23, 2018 16:43
Change-Id: I4fe462e126292de1a954ca735cb2aaf02ead0e53
@wesm
Copy link
Member

wesm commented Feb 24, 2018

+1. Will merge once the build is green. Thanks!

@xhochy xhochy closed this in e2dd864 Feb 24, 2018
@xuepanchen xuepanchen deleted the ARROW-2184 branch February 26, 2018 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants