pub fn decode_with_fast_schema<T: DeserializeOwned + Send, B: AsRef<[u8]> + Sync>(
schema: &Schema,
binary_records: &[B],
) -> Result<Vec<T>, KineticaError>avro
decode_with_fast_schema
decode_with_fast_schema — Kinetica Rust API
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
decode_with_fast_schema — Kinetica Rust API
pub fn decode_with_fast_schema<T: DeserializeOwned + Send, B: AsRef<[u8]> + Sync>(
schema: &Schema,
binary_records: &[B],
) -> Result<Vec<T>, KineticaError>Decodes binary Avro records using a pre-parsed serde_avro_fast schema.
This is equivalent to decode_records but accepts the schema by reference. Useful when decoding multiple batches with the same schema to avoid repeated schema parsing.
let schema = parse_fast_schema(&response.type_schema)?;
// Decode multiple batches without re-parsing schema
for batch in batches {
let records: Vec<MyRecord> = decode_with_fast_schema(&schema, &batch)?;
}