pub struct ColumnString { /* private fields */ }Expand description
Column for variable-length strings
Implementations§
Source§impl ColumnString
impl ColumnString
Sourcepub fn with_capacity(type_: Type, capacity: usize) -> Self
pub fn with_capacity(type_: Type, capacity: usize) -> Self
Creates a new empty String column with pre-allocated capacity for the given number of elements.
Sourcepub fn from_vec(type_: Type, data: Vec<String>) -> Self
pub fn from_vec(type_: Type, data: Vec<String>) -> Self
Creates a String column from an existing vector of strings.
Sourcepub fn with_data(self, data: Vec<String>) -> Self
pub fn with_data(self, data: Vec<String>) -> Self
Create a column with initial data (builder pattern)
Trait Implementations§
Source§impl Column for ColumnString
impl Column for ColumnString
Source§fn column_type(&self) -> &Type
fn column_type(&self) -> &Type
Get the type of this column
Source§fn append_column(&mut self, other: ColumnRef) -> Result<()>
fn append_column(&mut self, other: ColumnRef) -> Result<()>
Append another column’s data to this column
Source§fn load_from_buffer(&mut self, buffer: &mut &[u8], rows: usize) -> Result<()>
fn load_from_buffer(&mut self, buffer: &mut &[u8], rows: usize) -> Result<()>
Load column data from byte buffer
Source§fn clone_empty(&self) -> ColumnRef
fn clone_empty(&self) -> ColumnRef
Create an empty clone of this column (same type, no data)
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a mutable concrete column type
Auto Trait Implementations§
impl Freeze for ColumnString
impl RefUnwindSafe for ColumnString
impl Send for ColumnString
impl Sync for ColumnString
impl Unpin for ColumnString
impl UnwindSafe for ColumnString
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