Execute count remotely and return result.
(self)
| 171 | return RemoteDatasetProxy(new_ref) |
| 172 | |
| 173 | def count(self) -> int: |
| 174 | """Execute count remotely and return result.""" |
| 175 | |
| 176 | @ray.remote |
| 177 | def _remote_count(dataset): |
| 178 | return dataset.count() |
| 179 | |
| 180 | result_ref = _remote_count.remote(self._dataset_ref) |
| 181 | return ray.get(result_ref) |
| 182 | |
| 183 | def take(self, n=20) -> list: |
| 184 | """Execute take remotely and return result.""" |