Skip to content

Commit

Permalink
Deprecate ParquetMetaData::new_with_page_index
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Sep 28, 2024
1 parent 5e324f6 commit b6c63a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions parquet/src/file/metadata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,18 @@ impl ParquetMetaData {

/// Creates Parquet metadata from file metadata, a list of row
/// group metadata, and the column index structures.
#[deprecated(note = "Use ParquetMetaDataBuilder")]
pub fn new_with_page_index(
file_metadata: FileMetaData,
row_groups: Vec<RowGroupMetaData>,
column_index: Option<ParquetColumnIndex>,
offset_index: Option<ParquetOffsetIndex>,
) -> Self {
ParquetMetaData {
file_metadata,
row_groups,
column_index,
offset_index,
}
ParquetMetaDataBuilder::new(file_metadata)
.set_row_groups(row_groups)
.set_column_index(column_index)
.set_offset_index(offset_index)
.build()
}

/// Convert this ParquetMetaData into a [`ParquetMetaDataBuilder`]
Expand Down

0 comments on commit b6c63a8

Please sign in to comment.