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

Method make_record_decoder

arrow-avro/src/reader/mod.rs:1009–1024  ·  view source on GitHub ↗
(
        &self,
        writer_schema: &Schema,
        reader_schema: Option<&Schema>,
    )

Source from the content-addressed store, hash-verified

1007 }
1008
1009 fn make_record_decoder(
1010 &self,
1011 writer_schema: &Schema,
1012 reader_schema: Option<&Schema>,
1013 ) -> Result<RecordDecoder, AvroError> {
1014 let mut builder = AvroFieldBuilder::new(writer_schema);
1015 if let Some(reader_schema) = reader_schema {
1016 builder = builder.with_reader_schema(reader_schema);
1017 }
1018 let root = builder
1019 .with_utf8view(self.utf8_view)
1020 .with_strict_mode(self.strict_mode)
1021 .with_tz(self.tz)
1022 .build()?;
1023 RecordDecoder::try_new_with_options(root.data_type())
1024 }
1025
1026 fn make_record_decoder_from_schemas(
1027 &self,

Callers 1

Calls 6

with_reader_schemaMethod · 0.45
buildMethod · 0.45
with_tzMethod · 0.45
with_strict_modeMethod · 0.45
with_utf8viewMethod · 0.45
data_typeMethod · 0.45

Tested by

no test coverage detected