pub fn compress(
page: Page,
compressed_buffer: Vec<u8>,
compression: CompressionOptions,
) -> ParquetResult<CompressedPage>
Expand description
Compresses an [EncodedPage
] into a CompressedPage
using compressed_buffer
as the
intermediary buffer.
compressed_buffer
is taken by value because it becomes owned by CompressedPage
ยงErrors
Errors if the compressor fails