MCPcopy Create free account
hub / github.com/apache/paimon-rust / with_limit

Method with_limit

crates/paimon/src/table/read_builder.rs:212–215  ·  view source on GitHub ↗

Push a row-limit hint down to scan planning. This allows paimon-core scan planning to generate fewer splits when the current scan state keeps split-level `merged_row_count()` conservative. Note: This method does not guarantee that exactly `limit` rows will be returned by [`TableRead`]. It is only a pushdown hint for planning. Callers or query engines are responsible for enforcing the final LIMIT

(&mut self, limit: usize)

Source from the content-addressed store, hash-verified

210 /// returned by [`TableRead`]. It is only a pushdown hint for planning.
211 /// Callers or query engines are responsible for enforcing the final LIMIT.
212 pub fn with_limit(&mut self, limit: usize) -> &mut Self {
213 self.limit = Some(limit);
214 self
215 }
216
217 /// Create a table scan. Call [TableScan::plan] to get splits.
218 pub fn new_scan(&self) -> TableScan<'a> {

Callers 5

plan_tableFunction · 0.45
scanMethod · 0.45
scanMethod · 0.45
scanMethod · 0.45

Calls

no outgoing calls

Tested by 2

plan_tableFunction · 0.36