Struct parquet::file::writer::SerializedColumnWriter
source · pub struct SerializedColumnWriter<'a> { /* private fields */ }
Expand description
A wrapper around a ColumnWriter
that invokes a callback on Self::close
Implementations§
source§impl<'a> SerializedColumnWriter<'a>
impl<'a> SerializedColumnWriter<'a>
sourcepub fn new(
inner: ColumnWriter<'a>,
on_close: Option<OnCloseColumnChunk<'a>>,
) -> Self
pub fn new( inner: ColumnWriter<'a>, on_close: Option<OnCloseColumnChunk<'a>>, ) -> Self
Create a new SerializedColumnWriter
from a ColumnWriter
and an
optional callback to be invoked on Self::close
sourcepub fn untyped(&mut self) -> &mut ColumnWriter<'a>
pub fn untyped(&mut self) -> &mut ColumnWriter<'a>
Returns a reference to an untyped ColumnWriter
sourcepub fn typed<T: DataType>(&mut self) -> &mut ColumnWriterImpl<'a, T>
pub fn typed<T: DataType>(&mut self) -> &mut ColumnWriterImpl<'a, T>
Returns a reference to a typed ColumnWriterImpl
sourcepub fn close(self) -> Result<()>
pub fn close(self) -> Result<()>
Close this SerializedColumnWriter
Auto Trait Implementations§
impl<'a> !Freeze for SerializedColumnWriter<'a>
impl<'a> !RefUnwindSafe for SerializedColumnWriter<'a>
impl<'a> !Send for SerializedColumnWriter<'a>
impl<'a> !Sync for SerializedColumnWriter<'a>
impl<'a> Unpin for SerializedColumnWriter<'a>
impl<'a> !UnwindSafe for SerializedColumnWriter<'a>
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