Skip to content

Commit 093a10e

Browse files
authored
Parquet: Make MetadataLoader public (#5137)
* Make public * revert change in MetadataFetchFn
1 parent a361ce1 commit 093a10e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

parquet/src/arrow/async_reader/metadata.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use std::future::Future;
2828
use std::ops::Range;
2929

3030
/// A data source that can be used with [`MetadataLoader`] to load [`ParquetMetaData`]
31-
pub(crate) trait MetadataFetch {
31+
pub trait MetadataFetch {
3232
fn fetch(&mut self, range: Range<usize>) -> BoxFuture<'_, Result<Bytes>>;
3333
}
3434

@@ -39,9 +39,7 @@ impl<'a, T: AsyncFileReader> MetadataFetch for &'a mut T {
3939
}
4040

4141
/// An asynchronous interface to load [`ParquetMetaData`] from an async source
42-
///
43-
/// Crate-private until stabilised
44-
pub(crate) struct MetadataLoader<F> {
42+
pub struct MetadataLoader<F> {
4543
/// Function that fetches byte ranges asynchronously
4644
fetch: F,
4745
/// The in-progress metadata

0 commit comments

Comments
 (0)