Expand description
Streaming dataset format with lazy chunk loading
Enables lazy loading of large datasets (>100MB) by reading only the header and chunk index initially, then loading chunks on demand.
§Example
ⓘ
use alimentar::format::streaming::StreamingDataset;
// Open dataset (only reads header + index)
let dataset = StreamingDataset::open("large_data.ald")?;
// Access chunks lazily
println!("Total rows: {}", dataset.num_rows());
for chunk in dataset.chunks() {
println!("Chunk with {} rows", chunk?.num_rows());
}Structs§
- Chunk
Entry - Entry in the chunk index describing one chunk’s location
- Chunk
Index - Index of all chunks in a streaming dataset
- Chunk
Iterator - Iterator over chunks in a streaming dataset
- Streaming
Dataset - Streaming dataset with lazy chunk loading
Constants§
- DEFAULT_
CHUNK_ SIZE - Default chunk size in rows for streaming format
- STREAMING_
THRESHOLD - Minimum dataset size to recommend streaming (100MB)
Functions§
- save_
streaming - Save a dataset in streaming format