IntervalPropertyComputer
IntervalPropertyComputer
Templated computer for extracting properties from time intervals. More…
#include <IntervalPropertyComputer.h>
Inherits from IColumnComputer< T >
Public Functions
| Name | |
|---|---|
| IntervalPropertyComputer(std::shared_ptr< DigitalIntervalSeries > source, IntervalProperty property, std::string sourceName) Constructor for IntervalPropertyComputer. |
|
| virtual std::pair< std::vector< T >, ColumnEntityIds > | compute(ExecutionPlan const & plan) const override Computes the result for all intervals in the execution plan. |
| std::string | getSourceDependency() const override |
| virtual EntityIdStructure | getEntityIdStructure() const override Gets the EntityID structure type for this computer. |
Additional inherited members
Public Functions inherited from IColumnComputer< T >
| Name | |
|---|---|
| virtual | ~IColumnComputer() =default |
| IColumnComputer(IColumnComputer const & ) =delete | |
| IColumnComputer & | operator=(IColumnComputer const & ) =delete |
| IColumnComputer(IColumnComputer && ) =delete | |
| IColumnComputer & | operator=(IColumnComputer && ) =delete |
| virtual std::vector< std::string > | getDependencies() const Declares dependencies on other columns. |
| virtual ColumnEntityIds | computeColumnEntityIds(ExecutionPlan const & plan) const Computes all EntityIDs for the column using the high-level variant approach. |
| virtual std::vector< EntityId > | computeCellEntityIds(ExecutionPlan const & plan, size_t row_index) const Computes EntityIDs for a specific row. |
| virtual bool | hasEntityIds() const Checks if this computer can provide EntityID information. |
Protected Functions inherited from IColumnComputer< T >
| Name | |
|---|---|
| IColumnComputer() =default |
Detailed Description
template <typename T >
class IntervalPropertyComputer;Templated computer for extracting properties from time intervals.
Source type: DigitalIntervalSeries Selector type: Interval Output type: T
This computer works with DigitalIntervalSeries data and can extract different properties from intervals that are used as row selectors. The template parameter T determines the return type based on the property being extracted:
- IntervalProperty::Start requires T = int64_t or float
- IntervalProperty::End requires T = int64_t or float
- IntervalProperty::Duration requires T = int64_t or float
Public Functions Documentation
function IntervalPropertyComputer
inline IntervalPropertyComputer(
std::shared_ptr< DigitalIntervalSeries > source,
IntervalProperty property,
std::string sourceName
)Constructor for IntervalPropertyComputer.
Parameters:
- source Shared pointer to the interval source.
- property The property to extract from intervals.
- sourceName The name of the data source (for dependency tracking).
function compute
inline virtual std::pair< std::vector< T >, ColumnEntityIds > compute(
ExecutionPlan const & plan
) const overrideComputes the result for all intervals in the execution plan.
Parameters:
- plan The execution plan containing interval boundaries.
Return: Vector of computed results for each interval.
Reimplements: IColumnComputer::compute
function getSourceDependency
inline std::string getSourceDependency() const overridefunction getEntityIdStructure
inline virtual EntityIdStructure getEntityIdStructure() const overrideGets the EntityID structure type for this computer.
Return: EntityIdStructure::Simple since each interval maps to one value.
Reimplements: IColumnComputer::getEntityIdStructure
Updated on 2026-11-13 at 20:25:40 +0000