Skip to content

Commit

Permalink
Added accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Jan 30, 2022
1 parent bab6667 commit 561cc79
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/write/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ pub struct FileWriter<W: Write> {
row_groups: Vec<RowGroup>,
}

// Accessors
impl<W: Write> FileWriter<W> {
/// The options assigned to the file
pub fn options(&self) -> &WriteOptions {
&self.options
}

/// The [`SchemaDescriptor`] assigned to this file
pub fn schema(&self) -> &SchemaDescriptor {
&self.schema
}
}

impl<W: Write> FileWriter<W> {
/// Returns a new [`FileWriter`].
pub fn new(
Expand Down

0 comments on commit 561cc79

Please sign in to comment.