EnricherSelector Class
Defines the base class of all enricher selectors.
- Inheritance
-
builtins.objectEnricherSelector
Constructor
EnricherSelector()
Remarks
Use the granularity
property to set the granularity of an enricher.
EnricherSelector.granularity = DayGranularity()
Methods
process |
Process the enricher selector. |
process
Process the enricher selector.
process(customer_data: TimeData, public_data: TimeData, aggregator: Aggregator, join_keys: List[Tuple[str, str]] | None = None, debug: bool = False)
Parameters
Name | Description |
---|---|
customer_data
Required
|
An instance of a TimeData dervived class. |
public_data
Required
|
An instance of a TimeData derived class. |
aggregator
Required
|
An aggregator. |
join_keys
|
A list of join key pairs. Default value: None
|
debug
|
Indicates whether to print debug logs. Default value: False
|
Returns
Type | Description |
---|---|
A tuple of altered customer data class instance, altered public data class instance, and a list of join key pairs. |
Attributes
granularity
Get granularity.