orc_format::read

Struct 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§

Source§

impl Column

Source

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.

Source

pub fn encoding(&self) -> &ColumnEncoding

Returns the encoding of the column

Source

pub fn dictionary_size(&self) -> Option<usize>

Returns the number of items in the dictionary, if any

Source

pub fn number_of_rows(&self) -> usize

The number of rows on this column

Source

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§

Source§

impl Debug for Column

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Column

§

impl RefUnwindSafe for Column

§

impl Send for Column

§

impl Sync for Column

§

impl Unpin for Column

§

impl UnwindSafe for Column

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.