Rebuilder function and optional arguments to construct a persisted collection. See also the documentation for :py:class:`dask.typing.PostPersistCallable`. Returns ------- PostPersistCallable Callable that rebuilds the collection. The signature
(self)
| 185 | |
| 186 | @abc.abstractmethod |
| 187 | def __dask_postpersist__(self) -> tuple[PostPersistCallable, tuple]: |
| 188 | """Rebuilder function and optional arguments to construct a persisted collection. |
| 189 | |
| 190 | See also the documentation for :py:class:`dask.typing.PostPersistCallable`. |
| 191 | |
| 192 | Returns |
| 193 | ------- |
| 194 | PostPersistCallable |
| 195 | Callable that rebuilds the collection. The signature |
| 196 | should be |
| 197 | ``rebuild(dsk: Mapping, *args: Any, rename: Mapping[str, str] | None)`` |
| 198 | (as defined by the |
| 199 | :py:class:`~dask.typing.PostPersistCallable` protocol). |
| 200 | The callable should return an equivalent Dask collection |
| 201 | with the same keys as `self`, but with results that are |
| 202 | computed through a different graph. In the case of |
| 203 | :py:func:`dask.persist`, the new graph will have just the |
| 204 | output keys and the values already computed. |
| 205 | tuple[Any, ...] |
| 206 | Optional arguments passed to the rebuild callable. If no |
| 207 | additional arguments are to be passed then this must be an |
| 208 | empty tuple. |
| 209 | |
| 210 | """ |
| 211 | raise NotImplementedError("Inheriting class must implement this method.") |
| 212 | |
| 213 | @abc.abstractmethod |
| 214 | def __dask_tokenize__(self) -> Hashable: |
nothing calls this directly
no outgoing calls
no test coverage detected