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)
| 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. |