Struct parquet::encoding::RleValueEncoder [−][src]
pub struct RleValueEncoder<T: DataType> { /* fields omitted */ }
RLE/Bit-Packing hybrid encoding for values. Currently is used only for data pages v2 and supports boolean types.
Methods
impl<T: DataType> RleValueEncoder<T>
[src]
impl<T: DataType> RleValueEncoder<T>
Trait Implementations
impl<T: DataType> Encoder<T> for RleValueEncoder<T>
[src]
impl<T: DataType> Encoder<T> for RleValueEncoder<T>
fn put(&mut self, _values: &[T::T]) -> Result<()>
[src]
fn put(&mut self, _values: &[T::T]) -> Result<()>
Encodes data from values
.
fn encoding(&self) -> Encoding
[src]
fn encoding(&self) -> Encoding
Returns the encoding type of this encoder.
fn flush_buffer(&mut self) -> Result<ByteBufferPtr>
[src]
fn flush_buffer(&mut self) -> Result<ByteBufferPtr>
Flushes the underlying byte buffer that's being processed by this encoder, and return the immutable copy of it. This will also reset the internal state. Read more
impl Encoder<BoolType> for RleValueEncoder<BoolType>
[src]
impl Encoder<BoolType> for RleValueEncoder<BoolType>
fn put(&mut self, values: &[bool]) -> Result<()>
[src]
fn put(&mut self, values: &[bool]) -> Result<()>
Encodes data from values
.
fn flush_buffer(&mut self) -> Result<ByteBufferPtr>
[src]
fn flush_buffer(&mut self) -> Result<ByteBufferPtr>
Flushes the underlying byte buffer that's being processed by this encoder, and return the immutable copy of it. This will also reset the internal state. Read more
fn encoding(&self) -> Encoding
[src]
fn encoding(&self) -> Encoding
Returns the encoding type of this encoder.
Auto Trait Implementations
impl<T> Send for RleValueEncoder<T> where
T: Send,
impl<T> Send for RleValueEncoder<T> where
T: Send,
impl<T> Sync for RleValueEncoder<T> where
T: Sync,
impl<T> Sync for RleValueEncoder<T> where
T: Sync,