| 295 | } |
| 296 | |
| 297 | Result<std::shared_ptr<Tensor>> RecordBatch::ToTensor(bool null_to_nan, bool row_major, |
| 298 | MemoryPool* pool) const { |
| 299 | std::shared_ptr<Tensor> tensor; |
| 300 | ARROW_RETURN_NOT_OK( |
| 301 | internal::RecordBatchToTensor(*this, null_to_nan, row_major, pool, &tensor)); |
| 302 | return tensor; |
| 303 | } |
| 304 | |
| 305 | const std::string& RecordBatch::column_name(int i) const { |
| 306 | return schema_->field(i)->name(); |