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

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

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 PlainDecoder for more information.

Methods

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]

impl Decoder<Int96Type> for PlainDecoder<Int96Type>
[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.

impl Decoder<BoolType> for PlainDecoder<BoolType>
[src]

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.

impl Decoder<ByteArrayType> for PlainDecoder<ByteArrayType>
[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.

impl Decoder<FixedLenByteArrayType> for PlainDecoder<FixedLenByteArrayType>
[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.

Auto Trait Implementations

impl<T> !Send for PlainDecoder<T>

impl<T> !Sync for PlainDecoder<T>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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