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

Method with_limit

datafusion/catalog/src/table.rs:459–462  ·  view source on GitHub ↗

Set the maximum number of rows to return from the scan. If specified, the scan should return at most this many rows. This is typically used to optimize queries with `LIMIT` clauses. # Arguments `limit` - Optional maximum number of rows to return

(mut self, limit: Option<usize>)

Source from the content-addressed store, hash-verified

457 /// # Arguments
458 /// * `limit` - Optional maximum number of rows to return
459 pub fn with_limit(mut self, limit: Option<usize>) -> Self {
460 self.limit = limit;
461 self
462 }
463
464 /// Get the maximum number of rows to return from the scan.
465 ///

Callers 14

scanMethod · 0.45
scanMethod · 0.45
csv_openerFunction · 0.45
json_openerFunction · 0.45
scanMethod · 0.45
scan_formatFunction · 0.45
csv_exec_with_limitFunction · 0.45
scanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected