pub struct StructVector<'a> { /* private fields */ }Expand description
A struct vector borrowed from a DataChunkHandle.
Groups one child vector per struct field, all sharing the same row count.
Implementations§
Source§impl<'a> StructVector<'a>
impl<'a> StructVector<'a>
Sourcepub fn child(&self, idx: usize, capacity: usize) -> FlatVector<'a>
pub fn child(&self, idx: usize, capacity: usize) -> FlatVector<'a>
Returns the child by idx in the struct vector.
§Panics
Panics if capacity exceeds the parent vector capacity.
Sourcepub fn struct_vector_child(&self, idx: usize) -> StructVector<'a>
pub fn struct_vector_child(&self, idx: usize) -> StructVector<'a>
Take the child as StructVector.
Sourcepub fn list_vector_child(&self, idx: usize) -> ListVector<'a>
pub fn list_vector_child(&self, idx: usize) -> ListVector<'a>
Take the child as ListVector.
Sourcepub fn array_vector_child(&self, idx: usize) -> ArrayVector<'a>
pub fn array_vector_child(&self, idx: usize) -> ArrayVector<'a>
Take the child as ArrayVector.
Sourcepub fn logical_type(&self) -> LogicalTypeHandle
pub fn logical_type(&self) -> LogicalTypeHandle
Get the logical type of this struct vector.
Sourcepub fn row_is_null(&self, row: u64) -> bool
pub fn row_is_null(&self, row: u64) -> bool
Returns true if the row at the given index is null.
§Panics
Panics if row is outside the vector capacity.
Sourcepub fn try_row_is_null(&self, row: u64) -> Result<bool>
pub fn try_row_is_null(&self, row: u64) -> Result<bool>
Returns whether the row is null, or an error if it is out of range.
Sourcepub fn child_name(&self, idx: usize) -> DuckDbString
pub fn child_name(&self, idx: usize) -> DuckDbString
Get the name of the child by idx.
Panics if idx is out of range.
Sourcepub fn num_children(&self) -> usize
pub fn num_children(&self) -> usize
Get the number of children.
Auto Trait Implementations§
impl<'a> !Send for StructVector<'a>
impl<'a> !Sync for StructVector<'a>
impl<'a> Freeze for StructVector<'a>
impl<'a> RefUnwindSafe for StructVector<'a>
impl<'a> Unpin for StructVector<'a>
impl<'a> UnsafeUnpin for StructVector<'a>
impl<'a> UnwindSafe for StructVector<'a>
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