pub enum SourceFormat {
Jsonl,
Json,
Parquet,
Csv,
ArrowIpc,
ArrowIpcStream,
Log,
Txt,
Toml,
}Expand description
Supported bronze file formats for staging lake scans.
Variants§
Jsonl
Newline-delimited JSON (also accepts alias ndjson).
Json
Single JSON document or JSON array of objects.
Parquet
Csv
ArrowIpc
Arrow IPC file (random-access footer).
ArrowIpcStream
Arrow IPC stream (append-friendly / WAL-style).
Log
Line-oriented application / server logs.
Txt
Line-oriented text (llms.txt, docs dumps, structured line files).
Toml
TOML tables / array-of-tables as rows.
Implementations§
Source§impl SourceFormat
impl SourceFormat
pub fn as_str(self) -> &'static str
Sourcepub fn prefers_datafusion_listing(self) -> bool
pub fn prefers_datafusion_listing(self) -> bool
Prefer DataFusion listing / external table registration when true.
Sourcepub fn from_extension(ext: &str) -> Option<Self>
pub fn from_extension(ext: &str) -> Option<Self>
Infer format from a file extension (without the dot).
Trait Implementations§
Source§impl Clone for SourceFormat
impl Clone for SourceFormat
Source§fn clone(&self) -> SourceFormat
fn clone(&self) -> SourceFormat
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 moreimpl Copy for SourceFormat
Source§impl Debug for SourceFormat
impl Debug for SourceFormat
Source§impl<'de> Deserialize<'de> for SourceFormat
impl<'de> Deserialize<'de> for SourceFormat
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
Source§impl Display for SourceFormat
impl Display for SourceFormat
impl Eq for SourceFormat
Source§impl Hash for SourceFormat
impl Hash for SourceFormat
Source§impl PartialEq for SourceFormat
impl PartialEq for SourceFormat
Source§impl Serialize for SourceFormat
impl Serialize for SourceFormat
impl StructuralPartialEq for SourceFormat
Auto Trait Implementations§
impl Freeze for SourceFormat
impl RefUnwindSafe for SourceFormat
impl Send for SourceFormat
impl Sync for SourceFormat
impl Unpin for SourceFormat
impl UnsafeUnpin for SourceFormat
impl UnwindSafe for SourceFormat
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.