pub(crate) struct ColumnChunkMap<T> {
num_row_groups: usize,
num_columns: usize,
entries: HashMap<ColumnChunkKey, T>,
}Fields§
§num_row_groups: usize§num_columns: usize§entries: HashMap<ColumnChunkKey, T>Implementations§
Source§impl<T> ColumnChunkMap<T>
impl<T> ColumnChunkMap<T>
pub(crate) fn try_new(num_row_groups: usize, num_columns: usize) -> Result<Self>
pub(crate) fn num_row_groups(&self) -> usize
pub(crate) fn num_columns(&self) -> usize
pub(crate) fn is_empty(&self) -> bool
fn key(&self, row_group_idx: usize, column_idx: usize) -> Result<ColumnChunkKey>
Sourcepub(crate) fn try_insert(
&mut self,
row_group_idx: usize,
column_idx: usize,
value: T,
) -> Result<Option<T>>
pub(crate) fn try_insert( &mut self, row_group_idx: usize, column_idx: usize, value: T, ) -> Result<Option<T>>
Inserts or replaces an entry.
pub(crate) fn try_freeze(self) -> Result<ColumnChunkEntries<T>>
Trait Implementations§
Source§impl<T: Clone> Clone for ColumnChunkMap<T>
impl<T: Clone> Clone for ColumnChunkMap<T>
Source§impl<T: Debug> Debug for ColumnChunkMap<T>
impl<T: Debug> Debug for ColumnChunkMap<T>
Source§impl<T: HeapSize> HeapSize for ColumnChunkMap<T>
impl<T: HeapSize> HeapSize for ColumnChunkMap<T>
Source§impl<T: PartialEq> PartialEq for ColumnChunkMap<T>
impl<T: PartialEq> PartialEq for ColumnChunkMap<T>
impl<T: PartialEq> StructuralPartialEq for ColumnChunkMap<T>
Auto Trait Implementations§
impl<T> Forget for ColumnChunkMap<T>
impl<T> Freeze for ColumnChunkMap<T>
impl<T> Move for ColumnChunkMap<T>
impl<T> RefUnwindSafe for ColumnChunkMap<T>
impl<T> Send for ColumnChunkMap<T>
impl<T> Sync for ColumnChunkMap<T>
impl<T> Unpin for ColumnChunkMap<T>
impl<T> UnsafeUnpin for ColumnChunkMap<T>
impl<T> UnwindSafe for ColumnChunkMap<T>
Blanket Implementations§
impl<T> Allocation for T
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