Struct DataTypeLayout
pub struct DataTypeLayout {
pub buffers: Vec<BufferSpec>,
pub can_contain_null_mask: bool,
pub variadic: bool,
}
Expand description
Layout specification for a data type
Fields§
§buffers: Vec<BufferSpec>
A vector of buffer layout specifications, one for each expected buffer
can_contain_null_mask: bool
Can contain a null bitmask
variadic: bool
This field only applies to the view type DataType::BinaryView
and DataType::Utf8View
If variadic
is true, the number of buffers expected is only lower-bounded by
buffers.len(). Buffers that exceed the lower bound are legal.
Implementations§
§impl DataTypeLayout
impl DataTypeLayout
pub fn new_fixed_width<T>() -> DataTypeLayout
pub fn new_fixed_width<T>() -> DataTypeLayout
Describes a basic numeric array where each element has type T
pub fn new_nullable_empty() -> DataTypeLayout
pub fn new_nullable_empty() -> DataTypeLayout
Describes arrays which have no data of their own but may still have a Null Bitmap (e.g. FixedSizeList)
pub fn new_empty() -> DataTypeLayout
pub fn new_empty() -> DataTypeLayout
Describes arrays which have no data of their own (e.g. RunEndEncoded).
pub fn new_binary<T>() -> DataTypeLayout
pub fn new_binary<T>() -> DataTypeLayout
Describes a basic numeric array where each element has a fixed
with offset buffer of type T
, followed by a
variable width data buffer
pub fn new_view() -> DataTypeLayout
pub fn new_view() -> DataTypeLayout
Describes a view type
pub fn new_list_view<T>() -> DataTypeLayout
pub fn new_list_view<T>() -> DataTypeLayout
Describes a list view type
Trait Implementations§
§impl Debug for DataTypeLayout
impl Debug for DataTypeLayout
§impl PartialEq for DataTypeLayout
impl PartialEq for DataTypeLayout
impl Eq for DataTypeLayout
impl StructuralPartialEq for DataTypeLayout
Auto Trait Implementations§
impl Freeze for DataTypeLayout
impl RefUnwindSafe for DataTypeLayout
impl Send for DataTypeLayout
impl Sync for DataTypeLayout
impl Unpin for DataTypeLayout
impl UnwindSafe for DataTypeLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.