Skip to content

taps.apps.configs.mapreduce

MapreduceConfig

Bases: AppConfig

Mapreduce application configuration.

get_app()

get_app() -> App

Create an application instance from the config.

Source code in taps/apps/configs/mapreduce.py
def get_app(self) -> App:
    """Create an application instance from the config."""
    from taps.apps.mapreduce import MapreduceApp

    return MapreduceApp(
        data_dir=pathlib.Path(self.data_dir),
        map_tasks=self.map_tasks,
        generate=self.generate,
        generated_files=self.generated_files,
        generated_words=self.generated_words,
    )