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

Method first

datafusion/physical-expr/src/projection.rs:1024–1027  ·  view source on GitHub ↗

Returns the first target expression and its index.

(&self)

Source from the content-addressed store, hash-verified

1022impl ProjectionTargets {
1023 /// Returns the first target expression and its index.
1024 pub fn first(&self) -> &(Arc<dyn PhysicalExpr>, usize) {
1025 // Since the vector is non-empty, we can safely unwrap:
1026 self.exprs_indices.first().unwrap()
1027 }
1028
1029 /// Adds a target expression and its index to the list of targets.
1030 pub fn push(&mut self, target: (Arc<dyn PhysicalExpr>, usize)) {

Callers 15

try_newMethod · 0.45
analyzeMethod · 0.45
evaluateMethod · 0.45
is_expr_partial_constMethod · 0.45
project_expr_indirectMethod · 0.45
project_exprMethod · 0.45
project_expressionsMethod · 0.45
update_mapMethod · 0.45
test_update_propertiesFunction · 0.45
fmt_asMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_update_propertiesFunction · 0.36
fmt_asMethod · 0.36
build_table_from_batchesFunction · 0.36