pub struct DataChunkHandle { /* private fields */ }Expand description
Handle to the DataChunk in DuckDB.
Implementations§
Source§impl DataChunkHandle
impl DataChunkHandle
Sourcepub fn new(logical_types: &[LogicalTypeHandle]) -> Self
pub fn new(logical_types: &[LogicalTypeHandle]) -> Self
Create a new DataChunkHandle with the given LogicalTypeHandles.
Sourcepub fn flat_vector(&self, idx: usize) -> FlatVector
pub fn flat_vector(&self, idx: usize) -> FlatVector
Get the vector at the specific column index: idx.
Sourcepub fn list_vector(&self, idx: usize) -> ListVector
pub fn list_vector(&self, idx: usize) -> ListVector
Get a list vector from the column index.
Sourcepub fn array_vector(&self, idx: usize) -> ArrayVector
pub fn array_vector(&self, idx: usize) -> ArrayVector
Get a array vector from the column index.
Sourcepub fn struct_vector(&self, idx: usize) -> StructVector
pub fn struct_vector(&self, idx: usize) -> StructVector
Get struct vector at the column index: idx.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Get the length / the number of rows in this DataChunkHandle.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Check whether this DataChunkHandle is empty.
Sourcepub fn num_columns(&self) -> usize
pub fn num_columns(&self) -> usize
Get the number of columns in this DataChunkHandle.
Sourcepub fn get_ptr(&self) -> duckdb_data_chunk
pub fn get_ptr(&self) -> duckdb_data_chunk
Get the ptr of duckdb_data_chunk in this DataChunkHandle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataChunkHandle
impl RefUnwindSafe for DataChunkHandle
impl !Send for DataChunkHandle
impl !Sync for DataChunkHandle
impl Unpin for DataChunkHandle
impl UnwindSafe for DataChunkHandle
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