ExecutionPlan
ExecutionPlan
Holds a cached, reusable access pattern for a specific data source. More…
#include <ExecutionPlan.h>
Public Types
| Name | |
|---|---|
| enum class std::uint8_t | DataSourceKind { Unknown = 0, Analog, Event, IntervalKind, Line} |
Public Functions
| Name | |
|---|---|
| ExecutionPlan() =default Default constructor. |
|
| ExecutionPlan(std::vector< TimeFrameIndex > indices, std::shared_ptr< TimeFrame > timeFrame) Constructs an ExecutionPlan with indices. |
|
| ExecutionPlan(std::vector< TimeFrameInterval > intervals, std::shared_ptr< TimeFrame > timeFrame) Constructs an ExecutionPlan with interval pairs. |
|
| std::vector< TimeFrameIndex > const & | getIndices() const Gets the indices for direct access operations. |
| std::vector< TimeFrameInterval > const & | getIntervals() const Gets the intervals for interval-based operations. |
| bool | hasIndices() const Checks if the plan contains indices. |
| bool | hasIntervals() const Checks if the plan contains intervals. |
| void | setIndices(std::vector< TimeFrameIndex > indices) Sets the indices for the execution plan. |
| void | setIntervals(std::vector< TimeFrameInterval > intervals) Sets the intervals for the execution plan. |
| std::shared_ptr< TimeFrame > | getTimeFrame() const Gets the TimeFrame associated with this execution plan. |
| void | setRows(std::vector< RowId > rows) |
| std::vector< RowId > const & | getRows() const |
| bool | hasEntities() const |
| void | setSourceId(DataSourceId id) |
| DataSourceId | getSourceId() const |
| void | setSourceKind(DataSourceKind kind) |
| DataSourceKind | getSourceKind() const |
| void | setTimeToRowSpan(std::map< TimeFrameIndex, std::pair< size_t, size_t > > map) |
| std::map< TimeFrameIndex, std::pair< size_t, size_t > > const & | getTimeToRowSpan() const |
| template <typename F > void |
forEachTimestampGroup(F && f) const |
Detailed Description
class ExecutionPlan;Holds a cached, reusable access pattern for a specific data source.
This class holds the result of an expensive intermediate calculation, typically the mapping of row definitions to specific data array indices. It serves as a cache for computations that can be shared between columns.
Public Types Documentation
enum DataSourceKind
| Enumerator | Value | Description |
|---|---|---|
| Unknown | 0 | |
| Analog | ||
| Event | ||
| IntervalKind | ||
| Line |
Public Functions Documentation
function ExecutionPlan
ExecutionPlan() =defaultDefault constructor.
function ExecutionPlan
explicit ExecutionPlan(
std::vector< TimeFrameIndex > indices,
std::shared_ptr< TimeFrame > timeFrame
)Constructs an ExecutionPlan with indices.
Parameters:
- indices Vector of TimeFrameIndex objects for direct access.
- timeFrame Shared pointer to the TimeFrame associated with TimeFrameIndexes.
function ExecutionPlan
explicit ExecutionPlan(
std::vector< TimeFrameInterval > intervals,
std::shared_ptr< TimeFrame > timeFrame
)Constructs an ExecutionPlan with interval pairs.
Parameters:
- intervals Vector of TimeFrameInterval objects for interval operations.
- timeFrame Shared pointer to the TimeFrame associated with intervals.
function getIndices
std::vector< TimeFrameIndex > const & getIndices() constGets the indices for direct access operations.
Return: Const reference to the indices vector.
function getIntervals
std::vector< TimeFrameInterval > const & getIntervals() constGets the intervals for interval-based operations.
Return: Const reference to the intervals vector.
function hasIndices
bool hasIndices() constChecks if the plan contains indices.
Return: True if indices are available, false otherwise.
function hasIntervals
bool hasIntervals() constChecks if the plan contains intervals.
Return: True if intervals are available, false otherwise.
function setIndices
void setIndices(
std::vector< TimeFrameIndex > indices
)Sets the indices for the execution plan.
Parameters:
- indices Vector of TimeFrameIndex objects.
function setIntervals
void setIntervals(
std::vector< TimeFrameInterval > intervals
)Sets the intervals for the execution plan.
Parameters:
- intervals Vector of TimeFrameInterval objects.
function getTimeFrame
std::shared_ptr< TimeFrame > getTimeFrame() constGets the TimeFrame associated with this execution plan.
Return: Shared pointer to the TimeFrame.
function setRows
inline void setRows(
std::vector< RowId > rows
)function getRows
inline std::vector< RowId > const & getRows() constfunction hasEntities
inline bool hasEntities() constfunction setSourceId
inline void setSourceId(
DataSourceId id
)function getSourceId
inline DataSourceId getSourceId() constfunction setSourceKind
inline void setSourceKind(
DataSourceKind kind
)function getSourceKind
inline DataSourceKind getSourceKind() constfunction setTimeToRowSpan
inline void setTimeToRowSpan(
std::map< TimeFrameIndex, std::pair< size_t, size_t > > map
)function getTimeToRowSpan
inline std::map< TimeFrameIndex, std::pair< size_t, size_t > > const & getTimeToRowSpan() constfunction forEachTimestampGroup
template <typename F >
inline void forEachTimestampGroup(
F && f
) constUpdated on 2026-11-13 at 20:25:40 +0000