Struct parquet::file::metadata::ColumnIndexBuilder
source · pub struct ColumnIndexBuilder { /* private fields */ }
Expand description
Builder for Parquet ColumnIndex
, part of the Parquet PageIndex
Implementations§
source§impl ColumnIndexBuilder
impl ColumnIndexBuilder
sourcepub fn append(
&mut self,
null_page: bool,
min_value: Vec<u8>,
max_value: Vec<u8>,
null_count: i64,
)
pub fn append( &mut self, null_page: bool, min_value: Vec<u8>, max_value: Vec<u8>, null_count: i64, )
Append statistics for the next page
sourcepub fn append_histograms(
&mut self,
repetition_level_histogram: &Option<LevelHistogram>,
definition_level_histogram: &Option<LevelHistogram>,
)
pub fn append_histograms( &mut self, repetition_level_histogram: &Option<LevelHistogram>, definition_level_histogram: &Option<LevelHistogram>, )
Append the given page-level histograms to the ColumnIndex
histograms.
Does nothing if the ColumnIndexBuilder
is not in the valid
state.
sourcepub fn set_boundary_order(&mut self, boundary_order: BoundaryOrder)
pub fn set_boundary_order(&mut self, boundary_order: BoundaryOrder)
Set the boundary order of the column index
sourcepub fn to_invalid(&mut self)
pub fn to_invalid(&mut self)
Mark this column index as invalid
sourcepub fn build_to_thrift(self) -> ColumnIndex
pub fn build_to_thrift(self) -> ColumnIndex
Build and get the thrift metadata of column index
Note: callers should check Self::valid
before calling this method
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColumnIndexBuilder
impl RefUnwindSafe for ColumnIndexBuilder
impl Send for ColumnIndexBuilder
impl Sync for ColumnIndexBuilder
impl Unpin for ColumnIndexBuilder
impl UnwindSafe for ColumnIndexBuilder
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