Enum datafusion_expr::logical_plan::dml::CopyOptions
source · pub enum CopyOptions {
SQLOptions(StatementOptions),
WriterOptions(Box<FileTypeWriterOptions>),
}
Expand description
When the logical plan is constructed from SQL, CopyOptions will contain arbitrary string tuples which must be parsed into FileTypeWriterOptions. When the logical plan is constructed directly from rust code (such as via the DataFrame API), FileTypeWriterOptions can be provided directly, avoiding the run time cost and fallibility of parsing string based options.
Variants§
SQLOptions(StatementOptions)
Holds StatementOptions parsed from a SQL statement
WriterOptions(Box<FileTypeWriterOptions>)
Holds FileTypeWriterOptions directly provided
Trait Implementations§
source§impl Clone for CopyOptions
impl Clone for CopyOptions
source§fn clone(&self) -> CopyOptions
fn clone(&self) -> CopyOptions
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 Hash for CopyOptions
impl Hash for CopyOptions
source§impl PartialEq<CopyOptions> for CopyOptions
impl PartialEq<CopyOptions> for CopyOptions
source§fn eq(&self, other: &CopyOptions) -> bool
fn eq(&self, other: &CopyOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CopyOptions
Auto Trait Implementations§
impl RefUnwindSafe for CopyOptions
impl Send for CopyOptions
impl Sync for CopyOptions
impl Unpin for CopyOptions
impl UnwindSafe for CopyOptions
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.