| 249 | Table::Table() : num_rows_(0) {} |
| 250 | |
| 251 | std::vector<std::shared_ptr<Field>> Table::fields() const { |
| 252 | std::vector<std::shared_ptr<Field>> result; |
| 253 | result.reserve(this->num_columns()); |
| 254 | for (int i = 0; i < this->num_columns(); ++i) { |
| 255 | result.emplace_back(this->field(i)); |
| 256 | } |
| 257 | return result; |
| 258 | } |
| 259 | |
| 260 | std::shared_ptr<Table> Table::Make(std::shared_ptr<Schema> schema, |
| 261 | std::vector<std::shared_ptr<ChunkedArray>> columns, |