pub struct OrcOptions {
pub compression: Option<String>,
pub merge_schema: Option<bool>,
pub common: CommonFileOptions,
}
Expand description
A struct that represents options for configuring ORC file parsing.
§Options
merge_schema
: Merge schemas from all ORC files.path_glob_filter
: A glob pattern to filter files by their path.common
- Common file options that are shared across multiple file formats.
§Example
let options = OrcOptions::new()
.merge_schema(true)
.common.path_glob_filter("*.orc".to_string())
.common.recursive_file_lookup(true);
let df = spark.read().orc(["/path/to/orc"], options)?;
Fields§
§compression: Option<String>
§merge_schema: Option<bool>
§common: CommonFileOptions
Implementations§
Source§impl OrcOptions
impl OrcOptions
pub fn compression(self, value: &str) -> Self
pub fn merge_schema(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for OrcOptions
impl Clone for OrcOptions
Source§fn clone(&self) -> OrcOptions
fn clone(&self) -> OrcOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ConfigOpts for OrcOptions
impl ConfigOpts for OrcOptions
Source§impl Debug for OrcOptions
impl Debug for OrcOptions
Auto Trait Implementations§
impl Freeze for OrcOptions
impl RefUnwindSafe for OrcOptions
impl Send for OrcOptions
impl Sync for OrcOptions
impl Unpin for OrcOptions
impl UnwindSafe for OrcOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request