Skip to content

Commit

Permalink
add to_thrift() to OffsetIndexMetaData
Browse files Browse the repository at this point in the history
  • Loading branch information
etseidl committed Jul 22, 2024
1 parent 41b8f66 commit 1507c46
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions parquet/src/file/page_index/offset_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,13 @@ impl OffsetIndexMetaData {
pub fn unencoded_byte_array_data_bytes(&self) -> Option<&Vec<i64>> {
self.unencoded_byte_array_data_bytes.as_ref()
}

// TODO: remove annotation after merge
#[allow(dead_code)]
pub(crate) fn to_thrift(&self) -> OffsetIndex {
OffsetIndex::new(
self.page_locations.clone(),
self.unencoded_byte_array_data_bytes.clone(),
)
}
}

0 comments on commit 1507c46

Please sign in to comment.