Struct parquet::file::metadata::OffsetIndexBuilder
source · pub struct OffsetIndexBuilder { /* private fields */ }
Expand description
Builder for offset index, part of the Parquet PageIndex.
Implementations§
source§impl OffsetIndexBuilder
impl OffsetIndexBuilder
sourcepub fn append_row_count(&mut self, row_count: i64)
pub fn append_row_count(&mut self, row_count: i64)
Append the row count of the next page.
sourcepub fn append_offset_and_size(&mut self, offset: i64, compressed_page_size: i32)
pub fn append_offset_and_size(&mut self, offset: i64, compressed_page_size: i32)
Append the offset and size of the next page.
sourcepub fn append_unencoded_byte_array_data_bytes(
&mut self,
unencoded_byte_array_data_bytes: Option<i64>,
)
pub fn append_unencoded_byte_array_data_bytes( &mut self, unencoded_byte_array_data_bytes: Option<i64>, )
Append the unencoded byte array data bytes of the next page.
sourcepub fn build_to_thrift(self) -> OffsetIndex
pub fn build_to_thrift(self) -> OffsetIndex
Build and get the thrift metadata of offset index
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OffsetIndexBuilder
impl RefUnwindSafe for OffsetIndexBuilder
impl Send for OffsetIndexBuilder
impl Sync for OffsetIndexBuilder
impl Unpin for OffsetIndexBuilder
impl UnwindSafe for OffsetIndexBuilder
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