pub enum TripletIter {
BoolTripletIter(TypedTripletIter<BoolType>),
Int32TripletIter(TypedTripletIter<Int32Type>),
Int64TripletIter(TypedTripletIter<Int64Type>),
Int96TripletIter(TypedTripletIter<Int96Type>),
FloatTripletIter(TypedTripletIter<FloatType>),
DoubleTripletIter(TypedTripletIter<DoubleType>),
ByteArrayTripletIter(TypedTripletIter<ByteArrayType>),
FixedLenByteArrayTripletIter(TypedTripletIter<FixedLenByteArrayType>),
}
Expand description
High level API wrapper on column reader. Provides per-element access for each primitive column.
Variants§
BoolTripletIter(TypedTripletIter<BoolType>)
Int32TripletIter(TypedTripletIter<Int32Type>)
Int64TripletIter(TypedTripletIter<Int64Type>)
Int96TripletIter(TypedTripletIter<Int96Type>)
FloatTripletIter(TypedTripletIter<FloatType>)
DoubleTripletIter(TypedTripletIter<DoubleType>)
ByteArrayTripletIter(TypedTripletIter<ByteArrayType>)
FixedLenByteArrayTripletIter(TypedTripletIter<FixedLenByteArrayType>)
Implementations§
Source§impl TripletIter
impl TripletIter
Sourcepub fn new(
descr: ColumnDescPtr,
reader: ColumnReader,
batch_size: usize,
) -> Self
pub fn new( descr: ColumnDescPtr, reader: ColumnReader, batch_size: usize, ) -> Self
Creates new triplet for column reader
Sourcepub fn read_next(&mut self) -> Result<bool>
pub fn read_next(&mut self) -> Result<bool>
Invokes underlying typed triplet iterator to buffer current value.
Should be called once - either before is_null
or current_value
.
Sourcepub fn has_next(&self) -> bool
pub fn has_next(&self) -> bool
Provides check on values/levels left without invoking the underlying typed triplet
iterator.
Returns true if more values/levels exist, false otherwise.
It is always in sync with read_next
method.
Sourcepub fn current_def_level(&self) -> i16
pub fn current_def_level(&self) -> i16
Returns current definition level for a leaf triplet iterator
Sourcepub fn max_def_level(&self) -> i16
pub fn max_def_level(&self) -> i16
Returns max definition level for a leaf triplet iterator
Sourcepub fn current_rep_level(&self) -> i16
pub fn current_rep_level(&self) -> i16
Returns current repetition level for a leaf triplet iterator
Sourcepub fn max_rep_level(&self) -> i16
pub fn max_rep_level(&self) -> i16
Returns max repetition level for a leaf triplet iterator
Sourcepub fn is_null(&self) -> bool
pub fn is_null(&self) -> bool
Returns true, if current value is null. Based on the fact that for non-null value current definition level equals to max definition level.
Sourcepub fn current_value(&self) -> Result<Field>
pub fn current_value(&self) -> Result<Field>
Updates non-null value for current row.
Auto Trait Implementations§
impl !Freeze for TripletIter
impl !RefUnwindSafe for TripletIter
impl Send for TripletIter
impl !Sync for TripletIter
impl Unpin for TripletIter
impl !UnwindSafe for TripletIter
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