pub struct PrimitiveColumnIndex<T> {
pub(crate) column_index: ColumnIndex,
pub(crate) min_values: Vec<T>,
pub(crate) max_values: Vec<T>,
}
Expand description
Column index for primitive types
Fields§
§column_index: ColumnIndex
§min_values: Vec<T>
§max_values: Vec<T>
Implementations§
Source§impl<T: ParquetValueType> PrimitiveColumnIndex<T>
impl<T: ParquetValueType> PrimitiveColumnIndex<T>
pub(crate) fn try_new( null_pages: Vec<bool>, boundary_order: BoundaryOrder, null_counts: Option<Vec<i64>>, repetition_level_histograms: Option<Vec<i64>>, definition_level_histograms: Option<Vec<i64>>, min_bytes: Vec<&[u8]>, max_bytes: Vec<&[u8]>, ) -> Result<Self>
pub(super) fn try_from_thrift(index: ThriftColumnIndex<'_>) -> Result<Self>
Source§impl<T> PrimitiveColumnIndex<T>
impl<T> PrimitiveColumnIndex<T>
Sourcepub fn min_values(&self) -> &[T]
pub fn min_values(&self) -> &[T]
Returns an array containing the min values for each page.
Values in the returned slice are only valid if ColumnIndex::is_null_page()
is false
for the same index.
Sourcepub fn max_values(&self) -> &[T]
pub fn max_values(&self) -> &[T]
Returns an array containing the max values for each page.
Values in the returned slice are only valid if ColumnIndex::is_null_page()
is false
for the same index.
Sourcepub fn min_values_iter(&self) -> impl Iterator<Item = Option<&T>>
pub fn min_values_iter(&self) -> impl Iterator<Item = Option<&T>>
Returns an iterator over the min values.
Values may be None
when ColumnIndex::is_null_page()
is true
.
Sourcepub fn max_values_iter(&self) -> impl Iterator<Item = Option<&T>>
pub fn max_values_iter(&self) -> impl Iterator<Item = Option<&T>>
Returns an iterator over the max values.
Values may be None
when ColumnIndex::is_null_page()
is true
.
Methods from Deref<Target = ColumnIndex>§
Sourcepub fn null_count(&self, idx: usize) -> Option<i64>
pub fn null_count(&self, idx: usize) -> Option<i64>
Returns the number of null values in the page indexed by idx
Returns None
if no null counts have been set in the index
Sourcepub fn repetition_level_histogram(&self, idx: usize) -> Option<&[i64]>
pub fn repetition_level_histogram(&self, idx: usize) -> Option<&[i64]>
Returns the repetition level histogram for the page indexed by idx
Sourcepub fn definition_level_histogram(&self, idx: usize) -> Option<&[i64]>
pub fn definition_level_histogram(&self, idx: usize) -> Option<&[i64]>
Returns the definition level histogram for the page indexed by idx
Sourcepub fn is_null_page(&self, idx: usize) -> bool
pub fn is_null_page(&self, idx: usize) -> bool
Returns whether the page indexed by idx
consists of all null values
Trait Implementations§
Source§impl<T: Clone> Clone for PrimitiveColumnIndex<T>
impl<T: Clone> Clone for PrimitiveColumnIndex<T>
Source§fn clone(&self) -> PrimitiveColumnIndex<T>
fn clone(&self) -> PrimitiveColumnIndex<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: Debug> Debug for PrimitiveColumnIndex<T>
impl<T: Debug> Debug for PrimitiveColumnIndex<T>
Source§impl<T> Deref for PrimitiveColumnIndex<T>
impl<T> Deref for PrimitiveColumnIndex<T>
Source§impl<T: ParquetValueType> HeapSize for PrimitiveColumnIndex<T>
impl<T: ParquetValueType> HeapSize for PrimitiveColumnIndex<T>
Source§impl<T: PartialEq> PartialEq for PrimitiveColumnIndex<T>
impl<T: PartialEq> PartialEq for PrimitiveColumnIndex<T>
Source§impl<T: ParquetValueType> WriteThrift for PrimitiveColumnIndex<T>
impl<T: ParquetValueType> WriteThrift for PrimitiveColumnIndex<T>
Source§const ELEMENT_TYPE: ElementType = ElementType::Struct
const ELEMENT_TYPE: ElementType = ElementType::Struct
ElementType
to use when a list of this object is written.Source§fn write_thrift<W: Write>(
&self,
writer: &mut ThriftCompactOutputProtocol<W>,
) -> Result<()>
fn write_thrift<W: Write>( &self, writer: &mut ThriftCompactOutputProtocol<W>, ) -> Result<()>
writer
.impl<T> StructuralPartialEq for PrimitiveColumnIndex<T>
Auto Trait Implementations§
impl<T> Freeze for PrimitiveColumnIndex<T>
impl<T> RefUnwindSafe for PrimitiveColumnIndex<T>where
T: RefUnwindSafe,
impl<T> Send for PrimitiveColumnIndex<T>where
T: Send,
impl<T> Sync for PrimitiveColumnIndex<T>where
T: Sync,
impl<T> Unpin for PrimitiveColumnIndex<T>where
T: Unpin,
impl<T> UnwindSafe for PrimitiveColumnIndex<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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