| 284 | /// func(left.chunk[2][5:20], right.chunk[2][:], 25) |
| 285 | template <typename Action> |
| 286 | Status ApplyBinaryChunked(const ChunkedArray& left, const ChunkedArray& right, |
| 287 | Action&& action) { |
| 288 | MultipleChunkIterator iterator(left, right); |
| 289 | std::shared_ptr<Array> left_piece, right_piece; |
| 290 | while (iterator.Next(&left_piece, &right_piece)) { |
| 291 | ARROW_RETURN_NOT_OK(action(*left_piece, *right_piece, iterator.position())); |
| 292 | } |
| 293 | return Status::OK(); |
| 294 | } |
| 295 | |
| 296 | } // namespace internal |
| 297 | } // namespace arrow |