struct InMemoryRowGroup<'a> {
metadata: &'a RowGroupMetaData,
offset_index: Option<&'a [OffsetIndexMetaData]>,
column_chunks: Vec<Option<Arc<ColumnChunkData>>>,
row_count: usize,
}
Expand description
An in-memory collection of column chunks
Fields§
§metadata: &'a RowGroupMetaData
§offset_index: Option<&'a [OffsetIndexMetaData]>
§column_chunks: Vec<Option<Arc<ColumnChunkData>>>
§row_count: usize
Implementations§
Source§impl<'a> InMemoryRowGroup<'a>
impl<'a> InMemoryRowGroup<'a>
Sourceasync fn fetch<T: AsyncFileReader + Send>(
&mut self,
input: &mut T,
projection: &ProjectionMask,
selection: Option<&RowSelection>,
) -> Result<()>
async fn fetch<T: AsyncFileReader + Send>( &mut self, input: &mut T, projection: &ProjectionMask, selection: Option<&RowSelection>, ) -> Result<()>
Fetches the necessary column data into memory
Trait Implementations§
Source§impl RowGroups for InMemoryRowGroup<'_>
impl RowGroups for InMemoryRowGroup<'_>
Source§fn column_chunks(&self, i: usize) -> Result<Box<dyn PageIterator>>
fn column_chunks(&self, i: usize) -> Result<Box<dyn PageIterator>>
Returns a
PageIterator
for the column chunks with the given leaf column indexAuto Trait Implementations§
impl<'a> Freeze for InMemoryRowGroup<'a>
impl<'a> RefUnwindSafe for InMemoryRowGroup<'a>
impl<'a> Send for InMemoryRowGroup<'a>
impl<'a> Sync for InMemoryRowGroup<'a>
impl<'a> Unpin for InMemoryRowGroup<'a>
impl<'a> UnwindSafe for InMemoryRowGroup<'a>
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> 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