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

Method ordered_column_indices

datafusion/physical-expr/src/projection.rs:432–442  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

430 note = "Use column_indices() instead. This method will be removed in 58.0.0 or 6 months after 52.0.0 is released, whichever comes first."
431 )]
432 pub fn ordered_column_indices(&self) -> Vec<usize> {
433 self.exprs
434 .iter()
435 .map(|e| {
436 e.expr
437 .downcast_ref::<Column>()
438 .expect("Expected column reference in projection")
439 .index()
440 })
441 .collect()
442 }
443
444 /// Project a schema according to this projection.
445 ///

Callers 1

Calls 4

collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected