Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion vortex-scan/src/execution/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ pub(crate) use self::chunk::ROW_BLOCK_SIZE;
#[cfg(test)]
pub(crate) use self::chunk::row_chunks;
pub(crate) use self::chunk::rows_per_chunk;
#[cfg(test)]
pub(crate) use self::chunk::scan_chunks;
use self::filter::FilterPlanner;
pub use self::filter::FilterPlans;
Expand Down
5 changes: 5 additions & 0 deletions vortex-scan/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ pub type DataSourceScanRef = Box<dyn DataSourceScan>;
/// order or a limit, on the [`ScanRequest`], and the source decides what the pieces are and how
/// they run.
///
/// A source does the reads it needs to know a scan's units of work, such as pruning against zone
/// maps before cutting the scan into pieces, in the async [`DataSource::scan`], which the host
/// awaits. [`split`](Self::split) and [`open`](Self::open) are synchronous and read nothing, so
/// no stream of an opened scan waits on another for its first work.
///
/// A scan never starts threads. Its work may run as tasks on the session's runtime, which the
/// host owns.
pub trait DataSourceScan: 'static + Send {
Expand Down
14 changes: 13 additions & 1 deletion vortex-scan/src/source.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors

//! Source inputs and byte access for scans.
//! Source inputs and byte access for scans, and the [`DataSource`](crate::DataSource) that scans
//! them.

use std::sync::Arc;

Expand Down Expand Up @@ -32,3 +33,14 @@ pub struct ScanInput {
/// State shared by repeated scans of this input.
pub cache: Option<ScanCache>,
}

mod plan;
mod plan_stream;

pub use plan::FilePruner;
pub use plan::PlanChild;
pub use plan::PlanDataSource;
pub use plan::PlanSplitter;

#[cfg(test)]
mod tests;
Loading