pub trait DataType: 'static + Send {
type T: ParquetValueType;
// Required methods
fn get_type_size() -> usize;
fn get_column_reader(
column_writer: ColumnReader,
) -> Option<ColumnReaderImpl<Self>>
where Self: Sized;
fn get_column_writer(
column_writer: ColumnWriter<'_>,
) -> Option<ColumnWriterImpl<'_, Self>>
where Self: Sized;
fn get_column_writer_ref<'a, 'b: 'a>(
column_writer: &'b ColumnWriter<'a>,
) -> Option<&'b ColumnWriterImpl<'a, Self>>
where Self: Sized;
fn get_column_writer_mut<'a, 'b: 'a>(
column_writer: &'a mut ColumnWriter<'b>,
) -> Option<&'a mut ColumnWriterImpl<'b, Self>>
where 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§
Sourcetype T: ParquetValueType
type T: ParquetValueType
The physical type of the Parquet data type.
Required Methods§
Sourcefn get_type_size() -> usize
fn get_type_size() -> usize
Returns size in bytes for Rust representation of the physical type.
Sourcefn get_column_reader(
column_writer: ColumnReader,
) -> Option<ColumnReaderImpl<Self>>where
Self: Sized,
fn get_column_reader(
column_writer: ColumnReader,
) -> Option<ColumnReaderImpl<Self>>where
Self: Sized,
Returns the underlying ColumnReaderImpl
for the given ColumnReader
.
Sourcefn get_column_writer(
column_writer: ColumnWriter<'_>,
) -> Option<ColumnWriterImpl<'_, Self>>where
Self: Sized,
fn get_column_writer(
column_writer: ColumnWriter<'_>,
) -> Option<ColumnWriterImpl<'_, Self>>where
Self: Sized,
Returns the underlying ColumnWriterImpl
for the given ColumnWriter
.
Sourcefn get_column_writer_ref<'a, 'b: 'a>(
column_writer: &'b ColumnWriter<'a>,
) -> Option<&'b ColumnWriterImpl<'a, Self>>where
Self: Sized,
fn get_column_writer_ref<'a, 'b: 'a>(
column_writer: &'b ColumnWriter<'a>,
) -> Option<&'b ColumnWriterImpl<'a, Self>>where
Self: Sized,
Returns a reference to the underlying ColumnWriterImpl
for the given ColumnWriter
.
Sourcefn get_column_writer_mut<'a, 'b: 'a>(
column_writer: &'a mut ColumnWriter<'b>,
) -> Option<&'a mut ColumnWriterImpl<'b, Self>>where
Self: Sized,
fn get_column_writer_mut<'a, 'b: 'a>(
column_writer: &'a mut ColumnWriter<'b>,
) -> Option<&'a mut ColumnWriterImpl<'b, Self>>where
Self: Sized,
Returns a mutable reference to the underlying ColumnWriterImpl
for the given
Provided Methods§
Sourcefn get_physical_type() -> Type
fn get_physical_type() -> Type
Returns Parquet physical type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.