MCPcopy Create free account
hub / github.com/apache/arrow-rs / build_decoder

Method build_decoder

arrow-avro/src/reader/mod.rs:1312–1320  ·  view source on GitHub ↗

Build a streaming `Decoder` from this builder. # Requirements `SchemaStore` **must** be provided via `Self::with_writer_schema_store`. The store should contain **all** fingerprints that may appear on the stream. # Errors Returns [`ArrowError::InvalidArgumentError`] if the schema store is missing

(self)

Source from the content-addressed store, hash-verified

1310 /// # Errors
1311 /// * Returns [`ArrowError::InvalidArgumentError`] if the schema store is missing
1312 pub fn build_decoder(self) -> Result<Decoder, ArrowError> {
1313 if self.writer_schema_store.is_none() {
1314 return Err(ArrowError::InvalidArgumentError(
1315 "Building a decoder requires a writer schema store".to_string(),
1316 ));
1317 }
1318 self.make_decoder(None, self.reader_schema.as_ref())
1319 .map_err(ArrowError::from)
1320 }
1321}
1322
1323/// A high‑level Avro **Object Container File** reader.

Calls 2

make_decoderMethod · 0.45
as_refMethod · 0.45