pub(crate) struct ColumnChunkEntries<T> {
num_row_groups: usize,
num_columns: usize,
entries: Box<[(ColumnChunkKey, T)]>,
}Fields§
§num_row_groups: usize§num_columns: usize§entries: Box<[(ColumnChunkKey, T)]>Implementations§
Source§impl<T> ColumnChunkEntries<T>
impl<T> ColumnChunkEntries<T>
Sourcepub(crate) fn try_from_sorted_entries(
num_row_groups: usize,
num_columns: usize,
entries: Vec<(ColumnChunkKey, T)>,
) -> Result<Self>
pub(crate) fn try_from_sorted_entries( num_row_groups: usize, num_columns: usize, entries: Vec<(ColumnChunkKey, T)>, ) -> Result<Self>
Constructs immutable storage from entries in strictly increasing row-major order. Missing coordinates need no placeholder; dimensions only bound the stored keys.
pub(crate) fn try_from_rows(rows: Vec<Vec<Option<T>>>) -> Result<Self>
pub(crate) fn is_empty(&self) -> bool
fn key(&self, row_group_idx: usize, column_idx: usize) -> Result<ColumnChunkKey>
pub(crate) fn get( &self, row_group_idx: usize, column_idx: usize, ) -> Result<Option<&T>>
pub(crate) fn iter(&self) -> impl Iterator<Item = (ColumnChunkKey, &T)>
pub(crate) fn into_iter(self) -> impl Iterator<Item = (ColumnChunkKey, T)>
pub(crate) fn try_into_map(self) -> Result<ColumnChunkMap<T>>
Trait Implementations§
Source§impl<T: Clone> Clone for ColumnChunkEntries<T>
impl<T: Clone> Clone for ColumnChunkEntries<T>
Source§impl<T: Debug> Debug for ColumnChunkEntries<T>
impl<T: Debug> Debug for ColumnChunkEntries<T>
Source§impl<V: HeapSize> HeapSize for ColumnChunkEntries<V>
impl<V: HeapSize> HeapSize for ColumnChunkEntries<V>
Source§impl<T: PartialEq> PartialEq for ColumnChunkEntries<T>
impl<T: PartialEq> PartialEq for ColumnChunkEntries<T>
impl<T: PartialEq> StructuralPartialEq for ColumnChunkEntries<T>
Auto Trait Implementations§
impl<T> Forget for ColumnChunkEntries<T>
impl<T> Freeze for ColumnChunkEntries<T>
impl<T> Move for ColumnChunkEntries<T>
impl<T> RefUnwindSafe for ColumnChunkEntries<T>
impl<T> Send for ColumnChunkEntries<T>
impl<T> Sync for ColumnChunkEntries<T>
impl<T> Unpin for ColumnChunkEntries<T>
impl<T> UnsafeUnpin for ColumnChunkEntries<T>
impl<T> UnwindSafe for ColumnChunkEntries<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