pub struct ColumnarTable {
pub name: String,
/* private fields */
}Expand description
Arrow-compatible columnar table storage
Fields§
§name: StringTable name
Implementations§
Source§impl ColumnarTable
impl ColumnarTable
Sourcepub fn add_column(
&mut self,
name: impl Into<String>,
column_type: ColumnType,
) -> &mut Self
pub fn add_column( &mut self, name: impl Into<String>, column_type: ColumnType, ) -> &mut Self
Add a column to the table
Sourcepub fn set_primary_key(&mut self, column: impl Into<String>) -> &mut Self
pub fn set_primary_key(&mut self, column: impl Into<String>) -> &mut Self
Set the primary key column
Sourcepub fn get_column(&self, name: &str) -> Option<&ColumnChunk>
pub fn get_column(&self, name: &str) -> Option<&ColumnChunk>
Get a column by name
Sourcepub fn get_column_mut(&mut self, name: &str) -> Option<&mut ColumnChunk>
pub fn get_column_mut(&mut self, name: &str) -> Option<&mut ColumnChunk>
Get a mutable column by name
Sourcepub fn insert_row(&mut self, values: &HashMap<String, ColumnValue>) -> u32
pub fn insert_row(&mut self, values: &HashMap<String, ColumnValue>) -> u32
Insert a row with values
Sourcepub fn memory_size(&self) -> usize
pub fn memory_size(&self) -> usize
Get total memory usage
Sourcepub fn memory_comparison(&self) -> MemoryComparison
pub fn memory_comparison(&self) -> MemoryComparison
Get memory usage comparison with enum-based storage
Trait Implementations§
Source§impl Clone for ColumnarTable
impl Clone for ColumnarTable
Auto Trait Implementations§
impl !Freeze for ColumnarTable
impl RefUnwindSafe for ColumnarTable
impl Send for ColumnarTable
impl Sync for ColumnarTable
impl Unpin for ColumnarTable
impl UnwindSafe for ColumnarTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more