Skip to content

Commit

Permalink
fix(bin): Expose needed types public (#108)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Jul 1, 2024
1 parent 0b937e0 commit dc4642a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/bin/orc-export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ enum FileFormat {
Json,
}

#[allow(clippy::large_enum_variant)]
enum OutputWriter<W: io::Write, F: JsonFormat> {
Csv(csv::Writer<W>),
Json(json::Writer<W, F>),
Expand Down Expand Up @@ -121,7 +122,7 @@ fn main() -> Result<()> {

// Have we reached limit on the number of rows?
if num_rows > batch.num_rows() as u64 {
num_rows = num_rows - batch.num_rows() as u64;
num_rows -= batch.num_rows() as u64;
} else {
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/bin/orc-stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn print_column_stats(col_stats: &ColumnStatistics) {

println!("* Num values: {}", col_stats.number_of_values());
println!("* Has nulls: {}", col_stats.has_null());
println!("");
println!();
}

fn main() -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion src/reader/decompress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ impl FallibleStreamingIterator for DecompressorIter {
}

/// A [`Read`]er fulfilling the ORC specification of reading compressed data.
pub(crate) struct Decompressor {
pub struct Decompressor {
decompressor: DecompressorIter,
offset: usize,
is_first: bool,
Expand Down
4 changes: 2 additions & 2 deletions src/stripe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl TryFrom<(&proto::StripeInformation, &proto::StripeStatistics)> for StripeMe
}

#[derive(Debug)]
pub(crate) struct Stripe {
pub struct Stripe {
columns: Vec<Column>,
/// <(ColumnId, Kind), Bytes>
stream_map: Arc<StreamMap>,
Expand Down Expand Up @@ -218,7 +218,7 @@ impl Stripe {
}

#[derive(Debug)]
pub(crate) struct StreamMap {
pub struct StreamMap {
pub inner: HashMap<(u32, Kind), Bytes>,
pub compression: Option<Compression>,
}
Expand Down

0 comments on commit dc4642a

Please sign in to comment.