libcudf
23.12.00
|
Statistics about compression performed by a writer. More...
#include <types.hpp>
Public Member Functions | |
writer_compression_statistics ()=default | |
Default constructor. | |
writer_compression_statistics (size_t num_compressed_bytes, size_t num_failed_bytes, size_t num_skipped_bytes, size_t num_compressed_output_bytes) | |
Constructor with initial values. More... | |
writer_compression_statistics & | operator+= (writer_compression_statistics const &other) noexcept |
Adds the values from another writer_compression_statistics object. More... | |
auto | num_compressed_bytes () const noexcept |
Returns the number of bytes in blocks that were successfully compressed. More... | |
auto | num_failed_bytes () const noexcept |
Returns the number of bytes in blocks that failed to compress. More... | |
auto | num_skipped_bytes () const noexcept |
Returns the number of bytes in blocks that were skipped during compression. More... | |
auto | num_total_input_bytes () const noexcept |
Returns the total size of compression inputs. More... | |
auto | compression_ratio () const noexcept |
Returns the compression ratio for the successfully compressed blocks. More... | |
Statistics about compression performed by a writer.
Definition at line 99 of file io/types.hpp.
|
inline |
Constructor with initial values.
num_compressed_bytes | The number of bytes that were successfully compressed |
num_failed_bytes | The number of bytes that failed to compress |
num_skipped_bytes | The number of bytes that were skipped during compression |
num_compressed_output_bytes | The number of bytes in the compressed output |
Definition at line 114 of file io/types.hpp.
|
inlinenoexcept |
Returns the compression ratio for the successfully compressed blocks.
Returns nan if there were no successfully compressed blocks.
Definition at line 182 of file io/types.hpp.
|
inlinenoexcept |
Returns the number of bytes in blocks that were successfully compressed.
This is the number of bytes that were actually compressed, not the size of the compressed output.
Definition at line 148 of file io/types.hpp.
|
inlinenoexcept |
Returns the number of bytes in blocks that failed to compress.
Definition at line 155 of file io/types.hpp.
|
inlinenoexcept |
Returns the number of bytes in blocks that were skipped during compression.
Definition at line 162 of file io/types.hpp.
|
inlinenoexcept |
Returns the total size of compression inputs.
Definition at line 169 of file io/types.hpp.
|
inlinenoexcept |
Adds the values from another writer_compression_statistics
object.
other | The other writer_compression_statistics object |
Definition at line 131 of file io/types.hpp.