pub(crate) trait InspectSource:
Debug
+ Send
+ Sync {
// Required methods
fn schema(&self) -> SchemaRef;
fn scan(
&self,
request: &InspectScan,
ctx: Arc<TaskContext>,
) -> SendableRecordBatchStream;
}Expand description
Supplies batches for an internal inspection table. Implementations may prune conservatively; DataFusion retains complete residual predicates.
Required Methods§
fn schema(&self) -> SchemaRef
Sourcefn scan(
&self,
request: &InspectScan,
ctx: Arc<TaskContext>,
) -> SendableRecordBatchStream
fn scan( &self, request: &InspectScan, ctx: Arc<TaskContext>, ) -> SendableRecordBatchStream
Creates a fresh scan at execution time, including on repeated execution. Projection includes columns required by residual predicates.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".