pub struct RecordEncoderBuilder<'a> {
avro_root: &'a AvroField,
arrow_schema: &'a Schema,
fingerprint: Option<Fingerprint>,
}
Expand description
Builder for RecordEncoder
write plan
Fields§
§avro_root: &'a AvroField
§arrow_schema: &'a Schema
§fingerprint: Option<Fingerprint>
Implementations§
Source§impl<'a> RecordEncoderBuilder<'a>
impl<'a> RecordEncoderBuilder<'a>
Sourcepub fn new(avro_root: &'a AvroField, arrow_schema: &'a ArrowSchema) -> Self
pub fn new(avro_root: &'a AvroField, arrow_schema: &'a ArrowSchema) -> Self
Create a new builder from the Avro root and Arrow schema.
pub(crate) fn with_fingerprint(self, fingerprint: Option<Fingerprint>) -> Self
Sourcepub fn build(self) -> Result<RecordEncoder, ArrowError>
pub fn build(self) -> Result<RecordEncoder, ArrowError>
Build the RecordEncoder
by walking the Avro record root in Avro order,
resolving each field to an Arrow index by name.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RecordEncoderBuilder<'a>
impl<'a> RefUnwindSafe for RecordEncoderBuilder<'a>
impl<'a> Send for RecordEncoderBuilder<'a>
impl<'a> Sync for RecordEncoderBuilder<'a>
impl<'a> Unpin for RecordEncoderBuilder<'a>
impl<'a> UnwindSafe for RecordEncoderBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more