pub struct OffsetIndexBuilder {
offset_array: Vec<i64>,
compressed_page_size_array: Vec<i32>,
first_row_index_array: Vec<i64>,
unencoded_byte_array_data_bytes_array: Option<Vec<i64>>,
current_first_row_index: i64,
}
Expand description
Builder for offset index, part of the Parquet PageIndex.
Fields§
§offset_array: Vec<i64>
§compressed_page_size_array: Vec<i32>
§first_row_index_array: Vec<i64>
§unencoded_byte_array_data_bytes_array: Option<Vec<i64>>
§current_first_row_index: i64
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
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