pub struct AvroField {
name: String,
data_type: AvroDataType,
}
Expand description
A named AvroDataType
Fields§
§name: String
§data_type: AvroDataType
Implementations§
Source§impl AvroField
impl AvroField
Sourcepub fn data_type(&self) -> &AvroDataType
pub fn data_type(&self) -> &AvroDataType
Returns the AvroDataType
Sourcepub fn with_utf8view(&self) -> Self
pub fn with_utf8view(&self) -> Self
Returns a new AvroField
with Utf8View support enabled
This will convert any Utf8 codecs to Utf8View codecs. This method is used to enable potential performance optimizations in string-heavy workloads by using Arrow’s StringViewArray data structure.
Returns a new AvroField
with the same structure, but with string types
converted to use Utf8View
instead of Utf8
.
Trait Implementations§
Source§impl AvroFieldExt for AvroField
impl AvroFieldExt for AvroField
Source§fn with_utf8view(&self) -> Self
fn with_utf8view(&self) -> Self
Returns a new field with Utf8View support enabled for string data Read more
Auto Trait Implementations§
impl Freeze for AvroField
impl RefUnwindSafe for AvroField
impl Send for AvroField
impl Sync for AvroField
impl Unpin for AvroField
impl UnwindSafe for AvroField
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