Commits


mwish authored and GitHub committed 589a847545d
GH-33652: [C++][Parquet] Add interface total_compressed_bytes_written (#33897) ### Rationale for this change ### What changes are included in this PR? Talked in https://github.com/apache/arrow/issues/33652 . Main issue is that `total_bytes_written` is confusing, because it only tells the size of "uncompressed" bytes size written. For buffered page writer, the actually written size cannot be known until all column chunk is written and call `sink_.Tell()`. I'd like to: * [x] Add interface for PageWriter * [x] Add interface for ColumnWriter * [x] Add interface for RowGroupWriter * [x] Testing them ### Are these changes tested? I'd like to test it later. ### Are there any user-facing changes? User can get excatly size written by: `total_compressed_bytes_written() + total_compressed_bytes()` for ColumnWriter before finish writing. * Closes: #33652 Lead-authored-by: mwish <maplewish117@gmail.com> Co-authored-by: mwish <1506118561@qq.com> Co-authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Will Jones <willjones127@gmail.com>