Struct parquet::decoding::PlainDecoder[][src]

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

Plain decoding that supports all types. Values are encoded back to back. For native types, data is encoded as little endian. Floating point types are encoded in IEEE. See PlainEncoder for more information.

Implementations

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

pub fn new(type_length: i32) -> Self[src]

Creates new plain decoder.

Trait Implementations

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

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 values_left(&self) -> usize[src]

Returns the number of values left in this decoder stream.

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

Returns the encoding for this decoder.

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 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 PlainDecoder<T> where
    T: RefUnwindSafe

impl<T> Send for PlainDecoder<T> where
    T: Send

impl<T> Sync for PlainDecoder<T> where
    T: Sync

impl<T> Unpin for PlainDecoder<T> where
    T: Unpin

impl<T> UnwindSafe for PlainDecoder<T> where
    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