pub fn from_data(
        data_type: DataType,
        values: Vec<u8>,
        validity: Option<MutableBitmap>,
    ) -> Self {
        let size = FixedSizeBinaryArray::get_size(&data_type);
        assert_eq!(
            values.len() % size,
            0,
            "The len of values must be a multiple of size"
        );
        if let Some(validity) = &validity {
            assert_eq!(
                validity.len(),
                values.len() / size,
                "The len of the validity must be equal to values / size"
            );
        }
        Self {
            data_type,
            size,
            values,
            validity,
        }
    }
/// Canonical method to create a new [`MutableFixedSizeBinaryArray`].
Canonical method to create a new [`MutableFixedSizeBinaryArray`].
Canonical method to create a new [ ` MutableFixedSizeBinaryArray ` ] .
pub fn from_data(
        data_type: DataType,
        values: Vec<u8>,
        validity: Option<MutableBitmap>,
    ) -> Self {
        let size = FixedSizeBinaryArray::get_size(&data_type);
        assert_eq!(
            values.len() % size,
            0,
            "The len of values must be a multiple of size"
        );
        if let Some(validity) = &validity {
            assert_eq!(
                validity.len(),
                values.len() / size,
                "The len of the validity must be equal to values / size"
            );
        }
        Self {
            data_type,
            size,
            values,
            validity,
        }
    }
pub fn from_data ( data_type : DataType , values : Vec < u8 > , validity : Option < MutableBitmap > , ) -> Self { let size = FixedSizeBinaryArray :: get_size ( & data_type ) ; assert_eq ! ( values len ( ) size 0 " " ) ; if let Some ( validity ) = & validity { assert_eq ! ( validity len ( ) values len ( ) size " " ) ; } Self { data_type , size , values , validity , } }
Canonical method to create a new [`MutableFixedSizeBinaryArray`].
Canonical method to create a new [ ` MutableFixedSizeBinaryArray ` ] .
data_type
DataType
values
Vec<u8>
validity
Option<MutableBitmap>
data_type
DataType
values
Vec<u8>
validity
Option<MutableBitmap>