pub fn serialize(column: &ColumnRef, vec: &mut Vec<Vec<u8>>) -> Result<()> {
        let column = column.convert_full_column();
        // TODO support nullable
        let column = Series::remove_nullable(&column);
        let type_id = column.data_type_id().to_physical_type();

        with_match_scalar_type!(type_id, |$T| {
            let col: &<$T as Scalar>::ColumnType = Series::check_get(&column)?;
            GroupHash::serialize(col, vec)
        }, {
             Err(ErrorCode::BadDataValueType(
                format!("Unsupported apply fn serialize operation for column: {:?}", column.data_type()),
            ))
        })
    }
/// Apply binary mode function to each element of the column.
/// WARN: Can't use `&mut [Vec<u8>]` because it has performance drawback.
/// Refer: https://github.com/rust-lang/rust-clippy/issues/8334
Apply binary mode function to each element of the column.
WARN: Can't use `&mut [Vec]` because it has performance drawback.
Apply binary mode function to each element of the column . WARN : Can ' t use ` &mut [ Vec ] ` because it has performance drawback .
pub fn serialize(column: &ColumnRef, vec: &mut Vec<Vec<u8>>) -> Result<()> {
        let column = column.convert_full_column();
        // TODO support nullable
        let column = Series::remove_nullable(&column);
        let type_id = column.data_type_id().to_physical_type();
        with_match_scalar_type!(type_id, |$T| {
            let col: &<$T as Scalar>::ColumnType = Series::check_get(&column)?;
            GroupHash::serialize(col, vec)
        }, {
             Err(ErrorCode::BadDataValueType(
                format!("Unsupported apply fn serialize operation for column: {:?}", column.data_type()),
            ))
        })
    }
pub fn serialize ( column : & ColumnRef , vec : & mut Vec < Vec < u8 > > ) -> Result < ( ) > { let column = column . convert_full_column ( ) ; // TODO support nullable let column = Series :: remove_nullable ( & column ) ; let type_id = column . data_type_id ( ) . to_physical_type ( ) ; with_match_scalar_type ! ( type_id $ T { let col $ T as Scalar ColumnType Series check_get ( column ) GroupHash serialize ( col vec ) } { Err ( ErrorCode BadDataValueType ( format ( " " column data_type ( ) ) ) ) } ) }
Apply binary mode function to each element of the column.
Apply binary mode function to each element of the column .
column
&ColumnRef
vec
&mut Vec<Vec<u8>>