pub struct SourceConfig {
pub kind: SourceKind,
pub location: String,
}Fields§
§kind: SourceKind§location: StringEither a local filesystem path or an s3://bucket/key URL.
Implementations§
Source§impl SourceConfig
impl SourceConfig
pub fn is_s3(&self) -> bool
Sourcepub fn has_glob(&self) -> bool
pub fn has_glob(&self) -> bool
True when the location already contains a glob metacharacter
(*, ?, or [).
Sourcepub fn s3_recursive_parquet_glob(&self) -> String
pub fn s3_recursive_parquet_glob(&self) -> String
Location to hand to a backend that needs an explicit parquet glob
(DuckDB). When the location is a plain S3 prefix with no glob, append
a recursive **/*.parquet so DuckDB lists the prefix the same way
DataFusion’s object-store listing does. Globbed or non-S3 locations
are returned unchanged.
Trait Implementations§
Source§impl Clone for SourceConfig
impl Clone for SourceConfig
Source§fn clone(&self) -> SourceConfig
fn clone(&self) -> SourceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceConfig
impl Debug for SourceConfig
Source§impl<'de> Deserialize<'de> for SourceConfig
impl<'de> Deserialize<'de> for SourceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SourceConfig
impl RefUnwindSafe for SourceConfig
impl Send for SourceConfig
impl Sync for SourceConfig
impl Unpin for SourceConfig
impl UnsafeUnpin for SourceConfig
impl UnwindSafe for SourceConfig
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