TimeNearestSelector Class
Defines the time nearest selector with rounding to different time granularities.
Intialize with time granularity.
- Inheritance
-
TimeNearestSelector
Constructor
TimeNearestSelector(_granularity: TimeGranularity, enable_telemetry: bool = True)
Parameters
Name | Description |
---|---|
_granularity
Required
|
|
enable_telemetry
|
Default value: True
|
Methods
process |
Enrich customer data with public data using the specified aggregator. |
process
Enrich customer data with public data using the specified aggregator.
process(env: RuntimeEnv, customer_data: TimeData, public_data: TimeData, aggregator: Aggregator, join_keys: list | None = None, debug: bool = False)
Parameters
Name | Description |
---|---|
env
Required
|
The runtime environment. |
customer_data
Required
|
An instance of a TimeData derived 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. |