pub enum ColumnIndexMetaData {
NONE,
BOOLEAN(PrimitiveColumnIndex<bool>),
INT32(PrimitiveColumnIndex<i32>),
INT64(PrimitiveColumnIndex<i64>),
INT96(PrimitiveColumnIndex<Int96>),
FLOAT(PrimitiveColumnIndex<f32>),
DOUBLE(PrimitiveColumnIndex<f64>),
BYTE_ARRAY(ByteArrayColumnIndex),
FIXED_LEN_BYTE_ARRAY(ByteArrayColumnIndex),
}
Expand description
Parsed ColumnIndex
information for a Parquet file.
See ParquetColumnIndex
for more information.
Variants§
NONE
Sometimes reading page index from parquet file
will only return pageLocations without min_max index,
NONE
represents this lack of index information
BOOLEAN(PrimitiveColumnIndex<bool>)
Boolean type index
INT32(PrimitiveColumnIndex<i32>)
32-bit integer type index
INT64(PrimitiveColumnIndex<i64>)
64-bit integer type index
INT96(PrimitiveColumnIndex<Int96>)
96-bit integer type (timestamp) index
FLOAT(PrimitiveColumnIndex<f32>)
32-bit floating point type index
DOUBLE(PrimitiveColumnIndex<f64>)
64-bit floating point type index
BYTE_ARRAY(ByteArrayColumnIndex)
Byte array type index
FIXED_LEN_BYTE_ARRAY(ByteArrayColumnIndex)
Fixed length byte array type index
Implementations§
Source§impl ColumnIndexMetaData
impl ColumnIndexMetaData
Sourcepub fn get_boundary_order(&self) -> Option<BoundaryOrder>
pub fn get_boundary_order(&self) -> Option<BoundaryOrder>
Get boundary_order of this page index.
Sourcepub fn null_counts(&self) -> Option<&Vec<i64>>
pub fn null_counts(&self) -> Option<&Vec<i64>>
Returns array of null counts, one per page.
Returns None
if now null counts have been set in the index
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 Clone for ColumnIndexMetaData
impl Clone for ColumnIndexMetaData
Source§fn clone(&self) -> ColumnIndexMetaData
fn clone(&self) -> ColumnIndexMetaData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ColumnIndexMetaData
impl Debug for ColumnIndexMetaData
Source§impl HeapSize for ColumnIndexMetaData
impl HeapSize for ColumnIndexMetaData
Source§impl PartialEq for ColumnIndexMetaData
impl PartialEq for ColumnIndexMetaData
Source§impl WriteThrift for ColumnIndexMetaData
impl WriteThrift for ColumnIndexMetaData
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 StructuralPartialEq for ColumnIndexMetaData
Auto Trait Implementations§
impl Freeze for ColumnIndexMetaData
impl RefUnwindSafe for ColumnIndexMetaData
impl Send for ColumnIndexMetaData
impl Sync for ColumnIndexMetaData
impl Unpin for ColumnIndexMetaData
impl UnwindSafe for ColumnIndexMetaData
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