Skip to main content

legacy_to_v2_with_policy

Function legacy_to_v2_with_policy 

Source
pub fn legacy_to_v2_with_policy(
    set_bytes: &[u8],
    policy: RecordDecompressionPolicy,
) -> Result<RecordBatch, LegacyRecordsError>
Expand description

Up-convert a legacy MessageSet using explicit decompression limits.

ยงErrors

Returns an error if this function cannot decode the legacy message set within the limits in policy. Returns an error if the offsets overflow the v2 delta fields or timestamp differences exceed i64.