diff --git a/src/write/file.rs b/src/write/file.rs index 086743c06..a7b5c5913 100644 --- a/src/write/file.rs +++ b/src/write/file.rs @@ -77,6 +77,19 @@ pub struct FileWriter { row_groups: Vec, } +// Accessors +impl FileWriter { + /// 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 FileWriter { /// Returns a new [`FileWriter`]. pub fn new(