Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Conversation

@xhochy
Copy link
Member

@xhochy xhochy commented Jun 16, 2016

Yet only exposing the property publicly so I can make use of it in Arrow.

Also used the interface design from parquet-mr to make the WriterProperties immutable so we can safely pass references of them around once they have been passed to a ParquetFileWriter.

std::unique_ptr<ParquetFileWriter> ParquetFileWriter::Open(
std::shared_ptr<OutputStream> sink, std::shared_ptr<GroupNode>& schema,
MemoryAllocator* allocator) {
MemoryAllocator* allocator, std::shared_ptr<WriterProperties> properties) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const reference here

@wesm
Copy link
Member

wesm commented Jun 16, 2016

Cool, I'm +1 on immutability. Left a few comments around avoiding unnecessary shared pointer copies, but otherwise this can go in

@wesm
Copy link
Member

wesm commented Jun 17, 2016

Excellent, thank you. +1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants