Skip to content

ARROW-2184: [C++] Add static constructor for FileOutputStream returning shared_ptr to OutputStream - #1642

Closed
xuepanchen wants to merge 3 commits into
apache:masterfrom
xuepanchen:ARROW-2184
Closed

ARROW-2184: [C++] Add static constructor for FileOutputStream returning shared_ptr to OutputStream#1642
xuepanchen wants to merge 3 commits into
apache:masterfrom
xuepanchen:ARROW-2184

Conversation

@xuepanchen

Copy link
Copy Markdown
Contributor

Add constructors to return pointers to the base interface

@wesm

wesm commented Feb 21, 2018

Copy link
Copy Markdown
Member

Just rebased this, please

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

@xhochyxhochy left a comment

Copy link
Copy Markdown
Member

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.

@wesmwesm changed the title ARROW-2184: [C++] Add static ctor for FileOutputStream returning shared_ptr to base OutputStreamARROW-2184: [C++] Add static constructor for FileOutputStream returning shared_ptr to OutputStreamFeb 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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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

xuepanchenand others added 2 commits February 23, 2018 16:43
Change-Id: I4fe462e126292de1a954ca735cb2aaf02ead0e53
@wesm

wesm commented Feb 24, 2018

Copy link
Copy Markdown
Member

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

@xuepanchen
xuepanchen deleted the ARROW-2184 branch February 26, 2018 15:49
Sign up for freeto 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

@xuepanchen@wesm@xhochy