MCPcopy
hub / github.com/feast-dev/feast / count

Method count

sdk/python/feast/infra/ray_shared_utils.py:173–181  ·  view source on GitHub ↗

Execute count remotely and return result.

(self)

Source from the content-addressed store, hash-verified

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."""

Calls 1

getMethod · 0.80