Closed cpcloud closed 4 years ago
This PR makes block size configurable in Writer.
Writer
The approach uses the [typed_builder]() crate to enable this feature.
typed_builder
After this PR you can call the block_size method to construct a new writer using typed_builder:
block_size
writer
let mut writer = Writer::builder().block_size(100).writer(writer).schema(&schema).build();
Without calling the block_size method the default value of 16000 is used.
16000
I took the liberty to fix a merge conflict in Cargo.toml with your other PR. Let me see if the tests pass, now
It looks great, thanks for the contribution! :) I'll merge after the tests finish to run.
This PR makes block size configurable in
Writer
.The approach uses the [
typed_builder
]() crate to enable this feature.After this PR you can call the
block_size
method to construct a newwriter
usingtyped_builder
:Without calling the
block_size
method the default value of16000
is used.