parquet-lite 0.2.0

A lightweight, pure-Rust alternative to the official Apache Parquet crate — minimal dependencies, small binary size, WASM-compatible
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::CompressionCodec;
use crate::types::Result;

/// Identity codec — data passes through unchanged.
pub struct PlainCodec;

impl CompressionCodec for PlainCodec {
    fn decompress(&self, data: &[u8], _uncompressed_size: usize) -> Result<Vec<u8>> {
        Ok(data.to_vec())
    }

    fn compress(&self, data: &[u8]) -> Result<Vec<u8>> {
        Ok(data.to_vec())
    }
}