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

Method column_by_name

arrow-array/src/record_batch.rs:630–634  ·  view source on GitHub ↗

Get a reference to a column's array by name.

(&self, name: &str)

Source from the content-addressed store, hash-verified

628
629 /// Get a reference to a column's array by name.
630 pub fn column_by_name(&self, name: &str) -> Option<&ArrayRef> {
631 self.schema()
632 .column_with_name(name)
633 .map(|(index, _)| &self.columns[index])
634 }
635
636 /// Get a reference to all columns in the record batch.
637 pub fn columns(&self) -> &[ArrayRef] {

Calls 2

column_with_nameMethod · 0.80
schemaMethod · 0.45