| 270 | /// func(left.chunk[2][5:20], right.chunk[2][:], 25) |
| 271 | template <typename Action> |
| 272 | Status ApplyBinaryChunked(const ChunkedArray& left, const ChunkedArray& right, |
| 273 | Action&& action) { |
| 274 | MultipleChunkIterator iterator(left, right); |
| 275 | std::shared_ptr<Array> left_piece, right_piece; |
| 276 | while (iterator.Next(&left_piece, &right_piece)) { |
| 277 | ARROW_RETURN_NOT_OK(action(*left_piece, *right_piece, iterator.position())); |
| 278 | } |
| 279 | return Status::OK(); |
| 280 | } |
| 281 | |
| 282 | } // namespace internal |
| 283 | } // namespace arrow |