Struct parquet::schema::types::ColumnDescriptor
source · pub struct ColumnDescriptor { /* private fields */ }
Expand description
A descriptor for leaf-level primitive columns. This encapsulates information such as definition and repetition levels and is used to re-assemble nested data.
Implementations§
source§impl ColumnDescriptor
impl ColumnDescriptor
sourcepub fn new(
primitive_type: TypePtr,
max_def_level: i16,
max_rep_level: i16,
path: ColumnPath,
) -> Self
pub fn new( primitive_type: TypePtr, max_def_level: i16, max_rep_level: i16, path: ColumnPath, ) -> Self
Creates new descriptor for leaf-level column.
sourcepub fn max_def_level(&self) -> i16
pub fn max_def_level(&self) -> i16
Returns maximum definition level for this column.
sourcepub fn max_rep_level(&self) -> i16
pub fn max_rep_level(&self) -> i16
Returns maximum repetition level for this column.
sourcepub fn path(&self) -> &ColumnPath
pub fn path(&self) -> &ColumnPath
Returns ColumnPath
for this column.
sourcepub fn self_type_ptr(&self) -> TypePtr
pub fn self_type_ptr(&self) -> TypePtr
Returns self type TypePtr
for this leaf
column.
sourcepub fn converted_type(&self) -> ConvertedType
pub fn converted_type(&self) -> ConvertedType
Returns ConvertedType
for this column.
sourcepub fn logical_type(&self) -> Option<LogicalType>
pub fn logical_type(&self) -> Option<LogicalType>
Returns LogicalType
for this column.
sourcepub fn physical_type(&self) -> PhysicalType
pub fn physical_type(&self) -> PhysicalType
Returns physical type for this column. Note that it will panic if called on a non-primitive type.
sourcepub fn type_length(&self) -> i32
pub fn type_length(&self) -> i32
Returns type length for this column. Note that it will panic if called on a non-primitive type.
sourcepub fn type_precision(&self) -> i32
pub fn type_precision(&self) -> i32
Returns type precision for this column. Note that it will panic if called on a non-primitive type.
sourcepub fn type_scale(&self) -> i32
pub fn type_scale(&self) -> i32
Returns type scale for this column. Note that it will panic if called on a non-primitive type.
sourcepub fn sort_order(&self) -> SortOrder
pub fn sort_order(&self) -> SortOrder
Returns the sort order for this column