class documentation

class MapperFactory: (source)

View In Hierarchy

Manage mapper implementations

Class Method batch_methods Get available batch methods
Class Method create Create a mapper instance
Class Method mapper_keys Get available mapper class keys
Constant _BATCH_CLASSES Undocumented
Constant _MAPPER_CLASSES Undocumented
@classmethod
def batch_methods(cls) -> list[str]: (source)

Get available batch methods

@classmethod
def create(cls, mapper_key: str | None = None, num_workers: int | None = None, batch_method: str | None = None, batch_size: int | None = None, **mapper_extra_kwargs) -> fomm.Mapper: (source)

Create a mapper instance

@classmethod
def mapper_keys(cls) -> list[str]: (source)

Get available mapper class keys

Undocumented

Value
{'id': fomb.SampleIdBatch, 'slice': fomb.SampleSliceBatch}
_MAPPER_CLASSES: dict[str, type[fomm.Mapper]] = (source)

Undocumented

Value
{'process': fomp.ProcessMapper, 'thread': fomt.ThreadMapper}