pub struct ArrowWriterBuilder<W> { /* private fields */ }
Expand description
Construct an ArrowWriter
to encode RecordBatch
es 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 RecordBatch
es 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more