Terminator factory
Module with the factory pattern to return terminators.
TerminatorFactory
¶
Bases: object
TerminatorFactory class following the factory pattern.
Source code in mkdocs/lakehouse_engine/packages/terminators/terminator_factory.py
execute_terminator(spec, df=None)
staticmethod
¶
Execute a terminator following the factory pattern.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spec |
TerminatorSpec
|
terminator specification. |
required |
df |
Optional[DataFrame]
|
dataframe to be used in the terminator. Needed when a terminator requires one dataframe as input. |
None
|
Returns:
Type | Description |
---|---|
None
|
Transformer function to be executed in .transform() spark function. |