Struct parquet::decoding::RleValueDecoder [−][src]
pub struct RleValueDecoder<T: DataType> { /* fields omitted */ }
RLE/Bit-Packing hybrid decoding for values.
Currently is used only for data pages v2 and supports boolean types.
See RleValueEncoder
for more information.
Methods
impl<T: DataType> RleValueDecoder<T>
[src]
impl<T: DataType> RleValueDecoder<T>
Trait Implementations
impl<T: DataType> Decoder<T> for RleValueDecoder<T>
[src]
impl<T: DataType> Decoder<T> for RleValueDecoder<T>
fn set_data(&mut self, _data: ByteBufferPtr, _num_values: usize) -> Result<()>
[src]
fn set_data(&mut self, _data: ByteBufferPtr, _num_values: usize) -> Result<()>
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]
fn values_left(&self) -> usize
Returns the number of values left in this decoder stream.
fn encoding(&self) -> Encoding
[src]
fn encoding(&self) -> Encoding
Returns the encoding for this decoder.
fn get(&mut self, buffer: &mut [T::T]) -> Result<usize>
[src]
fn get(&mut self, buffer: &mut [T::T]) -> Result<usize>
Consumes values from this decoder and write the results to buffer
. This will try to fill up buffer
. Read more
impl Decoder<BoolType> for RleValueDecoder<BoolType>
[src]
impl Decoder<BoolType> for RleValueDecoder<BoolType>
fn set_data(&mut self, data: ByteBufferPtr, num_values: usize) -> Result<()>
[src]
fn set_data(&mut self, data: ByteBufferPtr, num_values: usize) -> Result<()>
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]
fn get(&mut self, buffer: &mut [T::T]) -> Result<usize>
Consumes values from this decoder and write the results to buffer
. This will try to fill up buffer
. Read more
fn values_left(&self) -> usize
[src]
fn values_left(&self) -> usize
Returns the number of values left in this decoder stream.
fn encoding(&self) -> Encoding
[src]
fn encoding(&self) -> Encoding
Returns the encoding for this decoder.
Auto Trait Implementations
impl<T> !Send for RleValueDecoder<T>
impl<T> !Send for RleValueDecoder<T>
impl<T> !Sync for RleValueDecoder<T>
impl<T> !Sync for RleValueDecoder<T>