Statistics about compression performed by a writer.
More...
#include <cudf/io/types.hpp>
Statistics about compression performed by a writer.
Definition at line 116 of file types.hpp.
◆ writer_compression_statistics()
| cudf::io::writer_compression_statistics::writer_compression_statistics |
( |
size_t |
num_compressed_bytes, |
|
|
size_t |
num_failed_bytes, |
|
|
size_t |
num_skipped_bytes, |
|
|
size_t |
num_compressed_output_bytes |
|
) |
| |
|
inline |
Constructor with initial values.
- Parameters
-
| 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 131 of file types.hpp.
◆ compression_ratio()
| auto cudf::io::writer_compression_statistics::compression_ratio |
( |
| ) |
const |
|
inlinenoexcept |
Returns the compression ratio for the successfully compressed blocks.
Returns nan if there were no successfully compressed blocks.
- Returns
- double The ratio between the size of the compression inputs and the size of the compressed output.
Definition at line 199 of file types.hpp.
◆ num_compressed_bytes()
| auto cudf::io::writer_compression_statistics::num_compressed_bytes |
( |
| ) |
const |
|
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.
- Returns
- size_t The number of bytes that were successfully compressed
Definition at line 165 of file types.hpp.
◆ num_failed_bytes()
| auto cudf::io::writer_compression_statistics::num_failed_bytes |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of bytes in blocks that failed to compress.
- Returns
- size_t The number of bytes that failed to compress
Definition at line 172 of file types.hpp.
◆ num_skipped_bytes()
| auto cudf::io::writer_compression_statistics::num_skipped_bytes |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of bytes in blocks that were skipped during compression.
- Returns
- size_t The number of bytes that were skipped during compression
Definition at line 179 of file types.hpp.
◆ num_total_input_bytes()
| auto cudf::io::writer_compression_statistics::num_total_input_bytes |
( |
| ) |
const |
|
inlinenoexcept |
Returns the total size of compression inputs.
- Returns
- size_t The total size of compression inputs
Definition at line 186 of file types.hpp.
◆ operator+=()
The documentation for this class was generated from the following file: