Struct parquet::decoding::DictDecoder [−][src]
pub struct DictDecoder<T: DataType> { /* fields omitted */ }
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.
Methods
impl<T: DataType> DictDecoder<T>[src]
impl<T: DataType> DictDecoder<T>pub fn new() -> Self[src]
pub fn new() -> SelfCreates new dictionary decoder.
pub fn set_dict(&mut self, decoder: Box<Decoder<T>>) -> Result<()>[src]
pub fn set_dict(&mut self, decoder: Box<Decoder<T>>) -> Result<()>Decodes and sets values for dictionary using decoder decoder.
Trait Implementations
impl<T: DataType> Decoder<T> for DictDecoder<T>[src]
impl<T: DataType> Decoder<T> for DictDecoder<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 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) -> usizeNumber of values left in this decoder stream
fn encoding(&self) -> Encoding[src]
fn encoding(&self) -> EncodingReturns the encoding for this decoder.
Auto Trait Implementations
impl<T> !Send for DictDecoder<T>
impl<T> !Send for DictDecoder<T>impl<T> !Sync for DictDecoder<T>
impl<T> !Sync for DictDecoder<T>