pub(super) struct DataRequestBuilder<'a> {
row_group_idx: usize,
row_count: usize,
batch_size: usize,
parquet_metadata: &'a ParquetMetaData,
projection: &'a ProjectionMask,
selection: Option<&'a RowSelection>,
cache_projection: Option<&'a ProjectionMask>,
column_chunks: Option<Vec<Option<Arc<ColumnChunkData>>>>,
}Expand description
Builder for DataRequest
Fields§
§row_group_idx: usizeThe row group index
row_count: usizeThe number of rows in the row group
batch_size: usizeThe batch size to read
parquet_metadata: &'a ParquetMetaDataThe parquet metadata
projection: &'a ProjectionMaskThe projection mask (which columns to read)
selection: Option<&'a RowSelection>Optional row selection to apply
cache_projection: Option<&'a ProjectionMask>Optional projection mask if using
RowGroupCache
for caching decoded columns.
column_chunks: Option<Vec<Option<Arc<ColumnChunkData>>>>Any previously read column chunks
Implementations§
Source§impl<'a> DataRequestBuilder<'a>
impl<'a> DataRequestBuilder<'a>
pub(super) fn new( row_group_idx: usize, row_count: usize, batch_size: usize, parquet_metadata: &'a ParquetMetaData, projection: &'a ProjectionMask, ) -> Self
Sourcepub(super) fn with_selection(self, selection: Option<&'a RowSelection>) -> Self
pub(super) fn with_selection(self, selection: Option<&'a RowSelection>) -> Self
Set an optional row selection to apply
Sourcepub(super) fn with_cache_projection(
self,
cache_projection: Option<&'a ProjectionMask>,
) -> Self
pub(super) fn with_cache_projection( self, cache_projection: Option<&'a ProjectionMask>, ) -> Self
set columns to cache, if any
Sourcepub(super) fn with_column_chunks(
self,
column_chunks: Option<Vec<Option<Arc<ColumnChunkData>>>>,
) -> Self
pub(super) fn with_column_chunks( self, column_chunks: Option<Vec<Option<Arc<ColumnChunkData>>>>, ) -> Self
Provide any previously read column chunks
pub(crate) fn build(self) -> DataRequest
Auto Trait Implementations§
impl<'a> Freeze for DataRequestBuilder<'a>
impl<'a> !RefUnwindSafe for DataRequestBuilder<'a>
impl<'a> Send for DataRequestBuilder<'a>
impl<'a> Sync for DataRequestBuilder<'a>
impl<'a> Unpin for DataRequestBuilder<'a>
impl<'a> !UnwindSafe for DataRequestBuilder<'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