pub struct RecordDecoder {
schema: SchemaRef,
fields: Vec<Decoder>,
}
Expand description
Decodes avro encoded data into [RecordBatch
]
Fields§
§schema: SchemaRef
§fields: Vec<Decoder>
Implementations§
Source§impl RecordDecoder
impl RecordDecoder
Sourcepub fn try_new(data_type: &AvroDataType) -> Result<Self, ArrowError>
pub fn try_new(data_type: &AvroDataType) -> Result<Self, ArrowError>
Create a new RecordDecoder
from the provided AvroDataType
pub fn schema(&self) -> &SchemaRef
Auto Trait Implementations§
impl Freeze for RecordDecoder
impl RefUnwindSafe for RecordDecoder
impl Send for RecordDecoder
impl Sync for RecordDecoder
impl Unpin for RecordDecoder
impl UnwindSafe for RecordDecoder
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