pub struct RecordDecoder {
schema: SchemaRef,
fields: Vec<Decoder>,
use_utf8view: bool,
}
Expand description
Decodes avro encoded data into [RecordBatch
]
Fields§
§schema: SchemaRef
§fields: Vec<Decoder>
§use_utf8view: bool
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
with default options
Sourcepub fn try_new_with_options(
data_type: &AvroDataType,
options: ReadOptions,
) -> Result<Self, ArrowError>
pub fn try_new_with_options( data_type: &AvroDataType, options: ReadOptions, ) -> Result<Self, ArrowError>
Create a new RecordDecoder
from the provided AvroDataType
with additional options
This method allows you to customize how the Avro data is decoded into Arrow arrays.
§Parameters
data_type
- The Avro data type to decodeoptions
- Configuration options for decoding
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