libcudf
24.02.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 105 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 120 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 188 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 154 of file io/types.hpp.
|
inlinenoexcept |
Returns the number of bytes in blocks that failed to compress.
Definition at line 161 of file io/types.hpp.
|
inlinenoexcept |
Returns the number of bytes in blocks that were skipped during compression.
Definition at line 168 of file io/types.hpp.
|
inlinenoexcept |
Returns the total size of compression inputs.
Definition at line 175 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 137 of file io/types.hpp.