pub struct ByteArrayColumnIndex {
pub(crate) column_index: ColumnIndex,
pub(crate) min_bytes: Vec<u8>,
pub(crate) min_offsets: Vec<usize>,
pub(crate) max_bytes: Vec<u8>,
pub(crate) max_offsets: Vec<usize>,
}
Expand description
Column index for byte arrays (fixed length and variable)
Fields§
§column_index: ColumnIndex
§min_bytes: Vec<u8>
§min_offsets: Vec<usize>
§max_bytes: Vec<u8>
§max_offsets: Vec<usize>
Implementations§
Source§impl ByteArrayColumnIndex
impl ByteArrayColumnIndex
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_values: Vec<&[u8]>, max_values: Vec<&[u8]>, ) -> Result<Self>
pub(super) fn try_from_thrift(index: ThriftColumnIndex<'_>) -> Result<Self>
Sourcepub fn min_value(&self, idx: usize) -> Option<&[u8]>
pub fn min_value(&self, idx: usize) -> Option<&[u8]>
Returns the min value for the page indexed by idx
It is None
when all values are null
Sourcepub fn max_value(&self, idx: usize) -> Option<&[u8]>
pub fn max_value(&self, idx: usize) -> Option<&[u8]>
Returns the max value for the page indexed by idx
It is None
when all values are null
Sourcepub fn min_values_iter(&self) -> impl Iterator<Item = Option<&[u8]>>
pub fn min_values_iter(&self) -> impl Iterator<Item = Option<&[u8]>>
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<&[u8]>>
pub fn max_values_iter(&self) -> impl Iterator<Item = Option<&[u8]>>
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 Clone for ByteArrayColumnIndex
impl Clone for ByteArrayColumnIndex
Source§fn clone(&self) -> ByteArrayColumnIndex
fn clone(&self) -> ByteArrayColumnIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ByteArrayColumnIndex
impl Debug for ByteArrayColumnIndex
Source§impl Deref for ByteArrayColumnIndex
impl Deref for ByteArrayColumnIndex
Source§impl HeapSize for ByteArrayColumnIndex
impl HeapSize for ByteArrayColumnIndex
Source§impl PartialEq for ByteArrayColumnIndex
impl PartialEq for ByteArrayColumnIndex
Source§impl WriteThrift for ByteArrayColumnIndex
impl WriteThrift for ByteArrayColumnIndex
Source§const ELEMENT_TYPE: ElementType = ElementType::Struct
const ELEMENT_TYPE: ElementType = ElementType::Struct
The
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<()>
Serialize this object to the given
writer
.impl StructuralPartialEq for ByteArrayColumnIndex
Auto Trait Implementations§
impl Freeze for ByteArrayColumnIndex
impl RefUnwindSafe for ByteArrayColumnIndex
impl Send for ByteArrayColumnIndex
impl Sync for ByteArrayColumnIndex
impl Unpin for ByteArrayColumnIndex
impl UnwindSafe for ByteArrayColumnIndex
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> 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>
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