Specify a reader schema to use when reading the Avro file. This can be useful to project specific columns or handle schema evolution. If this is not provided, the schema will be derived from the Arrow schema provided.
(self, reader_schema: AvroSchema)
| 73 | /// This can be useful to project specific columns or handle schema evolution. |
| 74 | /// If this is not provided, the schema will be derived from the Arrow schema provided. |
| 75 | pub fn with_reader_schema(self, reader_schema: AvroSchema) -> Self { |
| 76 | Self { |
| 77 | reader_schema: Some(reader_schema), |
| 78 | ..self |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | /// Specify a projection of column indices to read from the Avro file. |
| 83 | /// This can help optimize reading by only fetching the necessary columns. |
no outgoing calls