| 49 | namespace arrow { |
| 50 | |
| 51 | Result<std::shared_ptr<RecordBatch>> RecordBatch::AddColumn( |
| 52 | int i, std::string field_name, const std::shared_ptr<Array>& column) const { |
| 53 | auto field = ::arrow::field(std::move(field_name), column->type()); |
| 54 | return AddColumn(i, field, column); |
| 55 | } |
| 56 | |
| 57 | std::shared_ptr<Array> RecordBatch::GetColumnByName(const std::string& name) const { |
| 58 | auto i = schema_->GetFieldIndex(name); |