MCPcopy Create free account
hub / github.com/apache/arrow / GetColumnByName

Function GetColumnByName

cpp/src/arrow/table.h:137–140  ·  view source on GitHub ↗

\brief Return a column by name \param[in] name field name \return an Array or null if no field was found

Source from the content-addressed store, hash-verified

135 /// \param[in] name field name
136 /// \return an Array or null if no field was found
137 std::shared_ptr<ChunkedArray> GetColumnByName(const std::string& name) const {
138 auto i = schema_->GetFieldIndex(name);
139 return i == -1 ? NULLPTR : column(i);
140 }
141
142 /// \brief Remove column from the table, producing a new Table
143 virtual Result<std::shared_ptr<Table>> RemoveColumn(int i) const = 0;

Callers

nothing calls this directly

Calls 1

GetFieldIndexMethod · 0.45

Tested by

no test coverage detected