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

Function GetColumnByName

cpp/src/arrow/table.h:149–152  ·  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

147 /// \param[in] name field name
148 /// \return an Array or null if no field was found
149 std::shared_ptr<ChunkedArray> GetColumnByName(const std::string& name) const {
150 auto i = schema_->GetFieldIndex(name);
151 return i == -1 ? NULLPTR : column(i);
152 }
153
154 /// \brief Remove column from the table, producing a new Table
155 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