MCPcopy Create free account
hub / github.com/apache/arrow-rs / index

Method index

arrow-array/src/array/struct_array.rs:609–611  ·  view source on GitHub ↗

Get a reference to a column's array by name. Note: A schema can currently have duplicate field names, in which case the first field will always be selected. This issue will be addressed in [ARROW-11178](https://issues.apache.org/jira/browse/ARROW-11178) # Panics Panics if the name is not in the schema.

(&self, name: &str)

Source from the content-addressed store, hash-verified

607 ///
608 /// Panics if the name is not in the schema.
609 fn index(&self, name: &str) -> &Self::Output {
610 self.column_by_name(name).unwrap()
611 }
612}
613
614#[cfg(test)]

Callers

nothing calls this directly

Calls 1

column_by_nameMethod · 0.45

Tested by

no test coverage detected