Struct orc_format::read::Column
source · [−]pub struct Column { /* private fields */ }
Expand description
Helper struct used to access the streams associated to an ORC column.
Its main use Column::get_stream
, to get a stream.
Implementations
sourceimpl Column
impl Column
sourcepub fn get_stream(
&self,
kind: Kind,
scratch: Vec<u8>
) -> Result<Decompressor<'_>, Error>
pub fn get_stream(
&self,
kind: Kind,
scratch: Vec<u8>
) -> Result<Decompressor<'_>, Error>
Returns the stream kind
associated to this column as a Decompressor
.
scratch
becomes owned by Decompressor
, which you can recover via into_inner
.
sourcepub fn encoding(&self) -> &ColumnEncoding
pub fn encoding(&self) -> &ColumnEncoding
Returns the encoding of the column
sourcepub fn dictionary_size(&self) -> Option<usize>
pub fn dictionary_size(&self) -> Option<usize>
Returns the number of items in the dictionary, if any
sourcepub fn number_of_rows(&self) -> usize
pub fn number_of_rows(&self) -> usize
The number of rows on this column
sourcepub fn into_inner(self) -> (StripeFooter, Vec<u8>)
pub fn into_inner(self) -> (StripeFooter, Vec<u8>)
Returns the underlying footer and the pre-allocated memory region containing all (compressed) streams of this column.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more