[−][src]Struct parquet::column::writer::ColumnWriterImpl
Typed column writer for a primitive column.
Methods
impl<T: DataType> ColumnWriterImpl<T>
[src]
[−]
impl<T: DataType> ColumnWriterImpl<T>
pub fn new(
descr: ColumnDescPtr,
props: WriterPropertiesPtr,
page_writer: Box<dyn PageWriter>
) -> Self
[src]
pub fn new(
descr: ColumnDescPtr,
props: WriterPropertiesPtr,
page_writer: Box<dyn PageWriter>
) -> Self
pub fn write_batch(
&mut self,
values: &[T::T],
def_levels: Option<&[i16]>,
rep_levels: Option<&[i16]>
) -> Result<usize>
[src]
[−]
pub fn write_batch(
&mut self,
values: &[T::T],
def_levels: Option<&[i16]>,
rep_levels: Option<&[i16]>
) -> Result<usize>
Writes batch of values, definition levels and repetition levels. Returns number of values processed (written).
If definition and repetition levels are provided, we write fully those levels and select how many values to write (this number will be returned), since number of actual written values may be smaller than provided values.
If only values are provided, then all values are written and the length of of the values buffer is returned.
Definition and/or repetition levels can be omitted, if values are non-nullable and/or non-repeated.
pub fn get_total_bytes_written(&self) -> u64
[src]
[−]
pub fn get_total_bytes_written(&self) -> u64
Returns total number of bytes written by this column writer so far. This value is also returned when column writer is closed.
pub fn get_total_rows_written(&self) -> u64
[src]
[−]
pub fn get_total_rows_written(&self) -> u64
Returns total number of rows written by this column writer so far. This value is also returned when column writer is closed.
pub fn close(self) -> Result<(u64, u64, ColumnChunkMetaData)>
[src]
[−]
pub fn close(self) -> Result<(u64, u64, ColumnChunkMetaData)>
Finalises writes and closes the column writer. Returns total bytes written, total rows written and column chunk metadata.
Auto Trait Implementations
impl<T> !Send for ColumnWriterImpl<T>
impl<T> !Send for ColumnWriterImpl<T>
impl<T> !Sync for ColumnWriterImpl<T>
impl<T> !Sync for ColumnWriterImpl<T>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
[−]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
[−]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
[−]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
[−]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
[−]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
[−]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
[−]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
[−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
[−]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
[−]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
[−]
fn borrow_mut(&mut self) -> &mut T
impl<E> SpecializationError for E
[src]
[−]
impl<E> SpecializationError for E
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
[src]
[−]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> Erased for T
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[−]
impl<T, U> TryInto for T where
U: TryFrom<T>,