pub struct DataChunkBuilder { /* private fields */ }Expand description
Builder for creating DataChunks row by row.
Implementations§
Source§impl DataChunkBuilder
impl DataChunkBuilder
Sourcepub fn with_schema(column_types: &[LogicalType]) -> Self
pub fn with_schema(column_types: &[LogicalType]) -> Self
Creates a new builder with the given schema.
Sourcepub fn with_capacity(column_types: &[LogicalType], capacity: usize) -> Self
pub fn with_capacity(column_types: &[LogicalType], capacity: usize) -> Self
Creates a new builder with the given schema and capacity.
Sourcepub fn new(column_types: &[LogicalType]) -> Self
pub fn new(column_types: &[LogicalType]) -> Self
Alias for with_schema for backward compatibility.
Sourcepub fn column_mut(&mut self, index: usize) -> Option<&mut ValueVector>
pub fn column_mut(&mut self, index: usize) -> Option<&mut ValueVector>
Gets a mutable column for appending values.
Sourcepub fn advance_row(&mut self)
pub fn advance_row(&mut self)
Increments the row count.
Auto Trait Implementations§
impl Freeze for DataChunkBuilder
impl RefUnwindSafe for DataChunkBuilder
impl Send for DataChunkBuilder
impl Sync for DataChunkBuilder
impl Unpin for DataChunkBuilder
impl UnwindSafe for DataChunkBuilder
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