Struct parquet::decoding::DictDecoder[][src]

pub struct DictDecoder<T: DataType> { /* fields omitted */ }
Expand description

Dictionary decoder. The dictionary encoding builds a dictionary of values encountered in a given column. The dictionary is be stored in a dictionary page per column chunk. See DictEncoder for more information.

Implementations

impl<T: DataType> DictDecoder<T>[src]

pub fn new() -> Self[src]

Creates new dictionary decoder.

pub fn set_dict(&mut self, decoder: Box<dyn Decoder<T>>) -> Result<()>[src]

Decodes and sets values for dictionary using decoder decoder.

Trait Implementations

impl<T: DataType> Decoder<T> for DictDecoder<T>[src]

fn values_left(&self) -> usize[src]

Number of values left in this decoder stream

fn set_data(&mut self, data: ByteBufferPtr, num_values: usize) -> Result<()>[src]

Sets the data to decode to be data, which should contain num_values of values to decode. Read more

fn get(&mut self, buffer: &mut [T::T]) -> Result<usize>[src]

Consumes values from this decoder and write the results to buffer. This will try to fill up buffer. Read more

fn encoding(&self) -> Encoding[src]

Returns the encoding for this decoder.

fn get_spaced(
    &mut self,
    buffer: &mut [T::T],
    null_count: usize,
    valid_bits: &[u8]
) -> Result<usize>
[src]

Consume values from this decoder and write the results to buffer, leaving “spaces” for null values. Read more

Auto Trait Implementations

impl<T> RefUnwindSafe for DictDecoder<T> where
    <T as DataType>::T: RefUnwindSafe

impl<T> Send for DictDecoder<T> where
    <T as DataType>::T: Send

impl<T> Sync for DictDecoder<T> where
    <T as DataType>::T: Sync

impl<T> Unpin for DictDecoder<T> where
    <T as DataType>::T: Unpin

impl<T> UnwindSafe for DictDecoder<T> where
    <T as DataType>::T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V