pub fn serialize_batches_stream_lz4_bounded<'a, I>(
schema: &Schema,
batches: I,
max_bytes: usize,
) -> Result<Vec<u8>, ArrowError>where
I: IntoIterator<Item = &'a RecordBatch>,Expand description
Serializes batches as one LZ4-compressed Arrow IPC stream without allowing the output writer
to allocate beyond max_bytes.
ยงErrors
Returns [arrow_schema::ArrowError] if compression or encoding fails, or if the encoded stream
crosses the byte bound.