pub struct ArrowTableWriter<Builder: Default + StructArrayBuilder> {
pub flush_threshold: usize,
/* private fields */
}Expand description
Writer to a .arrow file, usable with ParallelDatasetWriter
Builder should follow the pattern documented by
arrow::builder
Fields§
§flush_threshold: usizeImplementations§
Source§impl<Builder: Default + StructArrayBuilder> ArrowTableWriter<Builder>
impl<Builder: Default + StructArrayBuilder> ArrowTableWriter<Builder>
Sourcepub fn builder(&mut self) -> Result<&mut Builder>
pub fn builder(&mut self) -> Result<&mut Builder>
Flushes the internal buffer is too large, then returns the array builder.
Trait Implementations§
Source§impl<Builder: Default + StructArrayBuilder> Drop for ArrowTableWriter<Builder>
impl<Builder: Default + StructArrayBuilder> Drop for ArrowTableWriter<Builder>
Source§impl<Builder: Default + StructArrayBuilder> TableWriter for ArrowTableWriter<Builder>
impl<Builder: Default + StructArrayBuilder> TableWriter for ArrowTableWriter<Builder>
type Schema = Schema
type CloseResult = ()
type Config = Option<usize>
fn new( path: PathBuf, schema: Self::Schema, config: Option<usize>, ) -> Result<Self>
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Calls
.into() on the internal builder, and writes its result to disk.fn close(self) -> Result<()>
Auto Trait Implementations§
impl<Builder> Freeze for ArrowTableWriter<Builder>where
Builder: Freeze,
impl<Builder> RefUnwindSafe for ArrowTableWriter<Builder>where
Builder: RefUnwindSafe,
impl<Builder> Send for ArrowTableWriter<Builder>where
Builder: Send,
impl<Builder> Sync for ArrowTableWriter<Builder>where
Builder: Sync,
impl<Builder> Unpin for ArrowTableWriter<Builder>where
Builder: Unpin,
impl<Builder> UnsafeUnpin for ArrowTableWriter<Builder>where
Builder: UnsafeUnpin,
impl<Builder> UnwindSafe for ArrowTableWriter<Builder>where
Builder: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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> 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