pub struct ReadOptions {
use_utf8view: bool,
}
Expand description
Configuration options for reading Avro data into Arrow arrays
This struct contains configuration options that control how Avro data is converted into Arrow arrays. It allows customizing various aspects of the data conversion process.
§Examples
// Use default options (regular StringArray for strings)
let default_options = ReadOptions::default();
// Enable Utf8View support for better string performance
let options = ReadOptions::default()
.with_utf8view(true);
Fields§
§use_utf8view: bool
Implementations§
Source§impl ReadOptions
impl ReadOptions
Sourcepub fn with_utf8view(self, use_utf8view: bool) -> Self
pub fn with_utf8view(self, use_utf8view: bool) -> Self
Set whether to use StringViewArray for string data
When enabled, string data from Avro files will be loaded into Arrow’s StringViewArray instead of the standard StringArray.
Sourcepub fn use_utf8view(&self) -> bool
pub fn use_utf8view(&self) -> bool
Get whether StringViewArray is enabled for string data
Trait Implementations§
Source§impl Clone for ReadOptions
impl Clone for ReadOptions
Source§fn clone(&self) -> ReadOptions
fn clone(&self) -> ReadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ReadOptions
impl Debug for ReadOptions
Source§impl Default for ReadOptions
impl Default for ReadOptions
Source§fn default() -> ReadOptions
fn default() -> ReadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReadOptions
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnwindSafe for ReadOptions
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