pub(crate) struct OrdinalAssigner {
first_has_ordinal: Option<bool>,
}Expand description
Assign RowGroupMetaData::ordinal if it is missing.
Fields§
§first_has_ordinal: Option<bool>Implementations§
Source§impl OrdinalAssigner
impl OrdinalAssigner
fn new() -> Self
Sourcefn ensure(
&mut self,
actual_ordinal: i16,
rg: RowGroupMetaData,
) -> Result<RowGroupMetaData>
fn ensure( &mut self, actual_ordinal: i16, rg: RowGroupMetaData, ) -> Result<RowGroupMetaData>
Sets RowGroupMetaData::ordinal if it is missing.
§Arguments
- actual_ordinal: The ordinal (index) of the row group being processed in the file metadata.
- rg: The
RowGroupMetaDatato potentially modify.
Ensures:
- If the first row group has an ordinal, all subsequent row groups must also have ordinals.
- If the first row group does NOT have an ordinal, all subsequent row groups must also not have ordinals.
Trait Implementations§
Source§impl Debug for OrdinalAssigner
impl Debug for OrdinalAssigner
Source§impl Default for OrdinalAssigner
impl Default for OrdinalAssigner
Source§fn default() -> OrdinalAssigner
fn default() -> OrdinalAssigner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OrdinalAssigner
impl RefUnwindSafe for OrdinalAssigner
impl Send for OrdinalAssigner
impl Sync for OrdinalAssigner
impl Unpin for OrdinalAssigner
impl UnwindSafe for OrdinalAssigner
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