struct FieldData {
type_id: i8,
data_type: DataType,
values_buffer: Box<dyn FieldDataValues>,
slots: usize,
null_buffer_builder: NullBufferBuilder,
}
Expand description
FieldData
is a helper struct to track the state of the fields in the UnionBuilder
.
Fields§
§type_id: i8
The type id for this field
data_type: DataType
The Arrow data type represented in the values_buffer
, which is untyped
values_buffer: Box<dyn FieldDataValues>
A buffer containing the values for this field in raw bytes
slots: usize
The number of array slots represented by the buffer
null_buffer_builder: NullBufferBuilder
A builder for the null bitmap
Implementations§
Source§impl FieldData
impl FieldData
Sourcefn new<T: ArrowPrimitiveType>(
type_id: i8,
data_type: DataType,
capacity: usize,
) -> Self
fn new<T: ArrowPrimitiveType>( type_id: i8, data_type: DataType, capacity: usize, ) -> Self
Creates a new FieldData
.
Sourcefn append_value<T: ArrowPrimitiveType>(&mut self, v: T::Native)
fn append_value<T: ArrowPrimitiveType>(&mut self, v: T::Native)
Appends a single value to this FieldData
’s values_buffer
.
Sourcefn append_null(&mut self)
fn append_null(&mut self)
Appends a null to this FieldData
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldData
impl !RefUnwindSafe for FieldData
impl !Send for FieldData
impl !Sync for FieldData
impl Unpin for FieldData
impl !UnwindSafe for FieldData
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
Mutably borrows from an owned value. Read more