NewDownloader
Creates and returns a new Downloader instance, configured with the specified data store, literal map format, and download mode.
def NewDownloader(
_: context.Context,
store: storage.DataStore,
format: core.DataLoadingConfig_LiteralMapFormat,
mode: core.IOStrategy_DownloadMode
) - > Downloader
Creates and returns a new Downloader instance configured with the specified data store, format, and download mode. Callers use this to initialize a Downloader for subsequent data loading operations.
Parameters
| Name | Type | Description |
|---|---|---|
| _ | context.Context | The context for the operation, typically used for cancellation or deadlines. |
| store | storage.DataStore | The data store where the downloader will retrieve data from. |
| format | core.DataLoadingConfig_LiteralMapFormat | The format in which the data should be interpreted or loaded. |
| mode | core.IOStrategy_DownloadMode | The download mode specifying how the data should be downloaded (e.g., streaming, batch). |
Returns
| Type | Description |
|---|---|
Downloader | A new Downloader instance. |