pub struct ArrowWriterBuilder<W> { /* private fields */ }Expand description
Construct an ArrowWriter to encode RecordBatches into a single
ORC file.
Implementations§
Source§impl<W: Write> ArrowWriterBuilder<W>
 
impl<W: Write> ArrowWriterBuilder<W>
Sourcepub fn new(writer: W, schema: SchemaRef) -> Self
 
pub fn new(writer: W, schema: SchemaRef) -> Self
Create a new ArrowWriterBuilder, which will write an ORC file to
the provided writer, with the expected Arrow schema.
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
 
pub fn with_batch_size(self, batch_size: usize) -> Self
Batch size controls the encoding behaviour, where batch_size values
are encoded at a time. Default is 1024.
Sourcepub fn with_stripe_byte_size(self, stripe_byte_size: usize) -> Self
 
pub fn with_stripe_byte_size(self, stripe_byte_size: usize) -> Self
The approximate size of stripes. Default is 64MiB.
Sourcepub fn try_build(self) -> Result<ArrowWriter<W>>
 
pub fn try_build(self) -> Result<ArrowWriter<W>>
Construct an ArrowWriter ready to encode RecordBatches into
an ORC file.
Auto Trait Implementations§
impl<W> Freeze for ArrowWriterBuilder<W>where
    W: Freeze,
impl<W> RefUnwindSafe for ArrowWriterBuilder<W>where
    W: RefUnwindSafe,
impl<W> Send for ArrowWriterBuilder<W>where
    W: Send,
impl<W> Sync for ArrowWriterBuilder<W>where
    W: Sync,
impl<W> Unpin for ArrowWriterBuilder<W>where
    W: Unpin,
impl<W> UnwindSafe for ArrowWriterBuilder<W>where
    W: UnwindSafe,
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