pub fn new(field_type: &dyn FieldTypeAccessor, init_cap: usize) -> Column {
        match field_type.tp() {
            FieldTypeTp::Tiny
            | FieldTypeTp::Short
            | FieldTypeTp::Int24
            | FieldTypeTp::Long
            | FieldTypeTp::LongLong
            | FieldTypeTp::Year
            | FieldTypeTp::Double
            | FieldTypeTp::Duration => Column::new_fixed_len(8, init_cap),

            FieldTypeTp::Float => Column::new_fixed_len(4, init_cap),

            FieldTypeTp::Date | FieldTypeTp::DateTime | FieldTypeTp::Timestamp => {
                Column::new_fixed_len(20, init_cap)
            }
            FieldTypeTp::NewDecimal => Column::new_fixed_len(DECIMAL_STRUCT_SIZE, init_cap),
            _ => Column::new_var_len_column(init_cap),
        }
    }
/// Create the column with a specified type and capacity.
Create the column with a specified type and capacity.
Create the column with a specified type and capacity .
pub fn new(field_type: &dyn FieldTypeAccessor, init_cap: usize) -> Column {
        match field_type.tp() {
            FieldTypeTp::Tiny
            | FieldTypeTp::Short
            | FieldTypeTp::Int24
            | FieldTypeTp::Long
            | FieldTypeTp::LongLong
            | FieldTypeTp::Year
            | FieldTypeTp::Double
            | FieldTypeTp::Duration => Column::new_fixed_len(8, init_cap),
            FieldTypeTp::Float => Column::new_fixed_len(4, init_cap),
            FieldTypeTp::Date | FieldTypeTp::DateTime | FieldTypeTp::Timestamp => {
                Column::new_fixed_len(20, init_cap)
            }
            FieldTypeTp::NewDecimal => Column::new_fixed_len(DECIMAL_STRUCT_SIZE, init_cap),
            _ => Column::new_var_len_column(init_cap),
        }
    }
pub fn new ( field_type : & dyn FieldTypeAccessor , init_cap : usize ) -> Column { match field_type . tp ( ) { FieldTypeTp :: Tiny | FieldTypeTp :: Short | FieldTypeTp :: Int24 | FieldTypeTp :: Long | FieldTypeTp :: LongLong | FieldTypeTp :: Year | FieldTypeTp :: Double | FieldTypeTp :: Duration => Column :: new_fixed_len ( 8 , init_cap ) , FieldTypeTp :: Float => Column :: new_fixed_len ( 4 , init_cap ) , FieldTypeTp :: Date | FieldTypeTp :: DateTime | FieldTypeTp :: Timestamp => { Column :: new_fixed_len ( 20 , init_cap ) } FieldTypeTp :: NewDecimal => Column :: new_fixed_len ( DECIMAL_STRUCT_SIZE , init_cap ) , _ => Column :: new_var_len_column ( init_cap ) , } }
Create the column with a specified type and capacity.
Create the column with a specified type and capacity .
field_type
&dyn FieldTypeAccessor
init_cap
usize
field_type
&dyn FieldTypeAccessor
init_cap
usize