pub struct TypedTripletIter<T: DataType> {
reader: ColumnReaderImpl<T>,
column_descr: ColumnDescPtr,
batch_size: usize,
max_def_level: i16,
max_rep_level: i16,
values: Vec<T::T>,
def_levels: Option<Vec<i16>>,
rep_levels: Option<Vec<i16>>,
curr_triplet_index: usize,
triplets_left: usize,
has_next: bool,
}
Expand description
Internal typed triplet iterator as a wrapper for column reader (primitive leaf column), provides per-element access.
Fields§
§reader: ColumnReaderImpl<T>
§column_descr: ColumnDescPtr
§batch_size: usize
§max_def_level: i16
§max_rep_level: i16
§values: Vec<T::T>
§def_levels: Option<Vec<i16>>
§rep_levels: Option<Vec<i16>>
§curr_triplet_index: usize
§triplets_left: usize
§has_next: bool
Implementations§
Source§impl<T: DataType> TypedTripletIter<T>
impl<T: DataType> TypedTripletIter<T>
Sourcefn new(
descr: ColumnDescPtr,
batch_size: usize,
column_reader: ColumnReader,
) -> Self
fn new( descr: ColumnDescPtr, batch_size: usize, column_reader: ColumnReader, ) -> Self
Creates new typed triplet iterator based on provided column reader. Use batch size to specify the amount of values to buffer from column reader.
Sourcepub fn column_descr(&self) -> &ColumnDescPtr
pub fn column_descr(&self) -> &ColumnDescPtr
Returns column descriptor reference for the current typed triplet iterator.
Sourcefn max_def_level(&self) -> i16
fn max_def_level(&self) -> i16
Returns maximum definition level for the triplet iterator (leaf column).
Sourcefn max_rep_level(&self) -> i16
fn max_rep_level(&self) -> i16
Returns maximum repetition level for the triplet iterator (leaf column).
Sourcefn current_value(&self) -> &T::T
fn current_value(&self) -> &T::T
Returns current value. Method does not advance the iterator, therefore can be called multiple times.
Sourcefn current_def_level(&self) -> i16
fn current_def_level(&self) -> i16
Returns current definition level. If field is required, then maximum definition level is returned.
Sourcefn current_rep_level(&self) -> i16
fn current_rep_level(&self) -> i16
Returns current repetition level. If field is required, then maximum repetition level is returned.
Auto Trait Implementations§
impl<T> !Freeze for TypedTripletIter<T>
impl<T> !RefUnwindSafe for TypedTripletIter<T>
impl<T> Send for TypedTripletIter<T>
impl<T> !Sync for TypedTripletIter<T>
impl<T> Unpin for TypedTripletIter<T>
impl<T> !UnwindSafe for TypedTripletIter<T>
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
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>
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>
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