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

Method with_reads

datafusion/datasource/src/file_stream/mod.rs:1428–1431  ·  view source on GitHub ↗

Sets the partition polling order. `run()` polls these partitions in the listed order first. After those explicit reads are exhausted, it completes to round robin across all configured partitions, skipping any streams that have already finished. This allows testing early scheduling decisions explicit in a test while avoiding a fully scripted poll trace for the remainder.

(mut self, reads: Vec<PartitionId>)

Source from the content-addressed store, hash-verified

1426 /// This allows testing early scheduling decisions explicit in a test
1427 /// while avoiding a fully scripted poll trace for the remainder.
1428 fn with_reads(mut self, reads: Vec<PartitionId>) -> Self {
1429 self.reads = reads;
1430 self
1431 }
1432
1433 /// Sets a global output limit for all streams created by this test.
1434 fn with_limit(mut self, limit: usize) -> Self {

Calls

no outgoing calls

Tested by

no test coverage detected