Struct parquet::data_type::BoolType [−][src]
pub struct BoolType {}
Trait Implementations
impl DataType for BoolType
[src]
impl DataType for BoolType
type T = bool
fn get_physical_type() -> Type
[src]
fn get_physical_type() -> Type
Returns Parquet physical type.
fn get_type_size() -> usize
[src]
fn get_type_size() -> usize
Returns size in bytes for Rust representation of the physical type.
impl Encoder<BoolType> for PlainEncoder<BoolType>
[src]
impl Encoder<BoolType> for PlainEncoder<BoolType>
fn put(&mut self, values: &[bool]) -> Result<()>
[src]
fn put(&mut self, values: &[bool]) -> 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.
impl Decoder<BoolType> for PlainDecoder<BoolType>
[src]
impl Decoder<BoolType> for PlainDecoder<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 [bool]) -> Result<usize>
[src]
fn get(&mut self, buffer: &mut [bool]) -> 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.
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.