CacheableDataLoader

Produces the content of a LoadingDirectoryCache entry: given a key, it fills a directory with files that are ready to be opened, for instance by downloading them or by computing them locally. The cache is unaware of how the data is obtained.

The type parameter K binds each loader to its own family of keys: for instance, a CacheableDataLoader<CopernicusRequest> rejects any other key at compile time.

Type Parameters

K

the type of CachedDirectoryKey this loader can load.

Inheritors

Functions

Link copied to clipboard
abstract fun load(key: K, target: Path)

Fills target with the data denoted by key.