From 561cc79cc1a22fb7321e9c6315ac635cc3684194 Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Sun, 30 Jan 2022 11:24:13 +0000 Subject: [PATCH] Added accessors --- src/write/file.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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(