pub struct LakeScanner {
pub paths: Vec<String>,
}Expand description
Multi-format lake scanner.
Fields§
§paths: Vec<String>Implementations§
Source§impl LakeScanner
impl LakeScanner
pub fn new(paths: Vec<String>) -> Self
pub fn from_request(req: &ScanRequest) -> Self
Sourcepub fn list_files(&self, req: &ScanRequest) -> Result<(PathBuf, Vec<PathBuf>)>
pub fn list_files(&self, req: &ScanRequest) -> Result<(PathBuf, Vec<PathBuf>)>
Resolve scan root and list bronze files after partition/glob filters.
Sourcepub async fn scan(&self, req: &ScanRequest) -> Result<Vec<RecordBatch>>
pub async fn scan(&self, req: &ScanRequest) -> Result<Vec<RecordBatch>>
Scan using a full ScanRequest (format-aware). Loads all batches into memory.
Sourcepub fn scan_spill_to_parquet(
&self,
req: &ScanRequest,
dest: &Path,
opts: &MaterializeWriteOptions,
) -> Result<StreamWriteStats>
pub fn scan_spill_to_parquet( &self, req: &ScanRequest, dest: &Path, opts: &MaterializeWriteOptions, ) -> Result<StreamWriteStats>
Stream bronze files into a single Parquet file (atomic publish).
Peak memory ≈ one source file’s batches + Parquet encoder — not the full hive tree.
Used for Arrow IPC multi-file bronze when scan.spill_arrow_ipc is true.
Auto Trait Implementations§
impl Freeze for LakeScanner
impl RefUnwindSafe for LakeScanner
impl Send for LakeScanner
impl Sync for LakeScanner
impl Unpin for LakeScanner
impl UnsafeUnpin for LakeScanner
impl UnwindSafe for LakeScanner
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for T
impl<T> Downcast for T
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more