Trait deltalake::datafusion::parquet::data_type::DataType

source ·
pub trait DataType: 'static + Send {
    type T: ParquetValueType;

    // Required methods
    fn get_type_size() -> usize;
    fn get_column_reader(
        column_writer: ColumnReader
    ) -> Option<GenericColumnReader<RepetitionLevelDecoderImpl, DefinitionLevelDecoderImpl, ColumnValueDecoderImpl<Self>>>
       where Self: Sized;
    fn get_column_writer(
        column_writer: ColumnWriter<'_>
    ) -> Option<GenericColumnWriter<'_, ColumnValueEncoderImpl<Self>>>
       where Self: Sized;
    fn get_column_writer_ref<'a, 'b>(
        column_writer: &'b ColumnWriter<'a>
    ) -> Option<&'b GenericColumnWriter<'a, ColumnValueEncoderImpl<Self>>>
       where 'b: 'a,
             Self: Sized;
    fn get_column_writer_mut<'a, 'b>(
        column_writer: &'a mut ColumnWriter<'b>
    ) -> Option<&'a mut GenericColumnWriter<'b, ColumnValueEncoderImpl<Self>>>
       where 'b: 'a,
             Self: Sized;

    // Provided method
    fn get_physical_type() -> Type { ... }
}
Expand description

Contains the Parquet physical type information as well as the Rust primitive type presentation.

Required Associated Types§

source

type T: ParquetValueType

Required Methods§

source

fn get_type_size() -> usize

Returns size in bytes for Rust representation of the physical type.

source

fn get_column_reader( column_writer: ColumnReader ) -> Option<GenericColumnReader<RepetitionLevelDecoderImpl, DefinitionLevelDecoderImpl, ColumnValueDecoderImpl<Self>>>
where Self: Sized,

source

fn get_column_writer( column_writer: ColumnWriter<'_> ) -> Option<GenericColumnWriter<'_, ColumnValueEncoderImpl<Self>>>
where Self: Sized,

source

fn get_column_writer_ref<'a, 'b>( column_writer: &'b ColumnWriter<'a> ) -> Option<&'b GenericColumnWriter<'a, ColumnValueEncoderImpl<Self>>>
where 'b: 'a, Self: Sized,

source

fn get_column_writer_mut<'a, 'b>( column_writer: &'a mut ColumnWriter<'b> ) -> Option<&'a mut GenericColumnWriter<'b, ColumnValueEncoderImpl<Self>>>
where 'b: 'a, Self: Sized,

Provided Methods§

source

fn get_physical_type() -> Type

Returns Parquet physical type.

Object Safety§

This trait is not object safe.

Implementors§