MCPcopy Create free account
hub / github.com/apache/datafusion / with_data_source

Method with_data_source

datafusion/datasource/src/source.rs:563–568  ·  view source on GitHub ↗
(mut self, data_source: Arc<dyn DataSource>)

Source from the content-addressed store, hash-verified

561 }
562
563 pub fn with_data_source(mut self, data_source: Arc<dyn DataSource>) -> Self {
564 self.cache = Arc::new(Self::compute_properties(&data_source));
565 self.data_source = data_source;
566 self.execution_state = Arc::new(OnceLock::new());
567 self
568 }
569
570 /// Assign constraints
571 pub fn with_constraints(mut self, constraints: Constraints) -> Self {

Callers 4

repartitionedMethod · 0.80
try_pushdown_sortMethod · 0.80
with_preserve_orderMethod · 0.80
with_new_stateMethod · 0.80

Calls 1

newFunction · 0.85

Tested by

no test coverage detected