TimestampInIntervalComputer
TimestampInIntervalComputer
Computer that returns true if each timestamp lies within any digital interval. More…
#include <TimestampInIntervalComputer.h>
Inherits from IColumnComputer< bool >
Public Functions
| Name | |
|---|---|
| TimestampInIntervalComputer(std::shared_ptr< DigitalIntervalSeries > source, std::string sourceName =““) Construct with interval source and optional dependency name. |
|
| virtual std::pair< std::vector< bool >, ColumnEntityIds > | compute(ExecutionPlan const & plan) const override |
| std::string | getSourceDependency() const override |
Additional inherited members
Public Functions inherited from IColumnComputer< bool >
| 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 EntityIdStructure | getEntityIdStructure() const Gets the EntityID structure type for this computer. |
| 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< bool >
| Name | |
|---|---|
| IColumnComputer() =default |
Detailed Description
class TimestampInIntervalComputer;Computer that returns true if each timestamp lies within any digital interval.
Source type: DigitalIntervalSeries Selector type: Timestamp Output type: bool
Works with a TimestampSelector-backed ExecutionPlan. For each row timestamp t, returns true if there exists an interval [start, end] from the interval source such that start <= t <= end (with timeframe conversion handled automatically).
Public Functions Documentation
function TimestampInIntervalComputer
inline explicit TimestampInIntervalComputer(
std::shared_ptr< DigitalIntervalSeries > source,
std::string sourceName =""
)Construct with interval source and optional dependency name.
Parameters:
- source Interval source to query.
- sourceName Name used for dependency tracking.
function compute
virtual std::pair< std::vector< bool >, ColumnEntityIds > compute(
ExecutionPlan const & plan
) const overridePrecondition: plan.getTimeFrame() is not null
Postcondition: result.size() equals number of timestamps implied by plan
Reimplements: IColumnComputer::compute
function getSourceDependency
inline std::string getSourceDependency() const overrideUpdated on 2026-11-13 at 20:25:39 +0000