Skip to main content

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() =default

Default 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() const

Gets the indices for direct access operations.

Return: Const reference to the indices vector.

function getIntervals

std::vector< TimeFrameInterval > const & getIntervals() const

Gets the intervals for interval-based operations.

Return: Const reference to the intervals vector.

function hasIndices

bool hasIndices() const

Checks if the plan contains indices.

Return: True if indices are available, false otherwise.

function hasIntervals

bool hasIntervals() const

Checks 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:

function setIntervals

void setIntervals(
    std::vector< TimeFrameInterval > intervals
)

Sets the intervals for the execution plan.

Parameters:

function getTimeFrame

std::shared_ptr< TimeFrame > getTimeFrame() const

Gets 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() const

function hasEntities

inline bool hasEntities() const

function setSourceId

inline void setSourceId(
    DataSourceId id
)

function getSourceId

inline DataSourceId getSourceId() const

function setSourceKind

inline void setSourceKind(
    DataSourceKind kind
)

function getSourceKind

inline DataSourceKind getSourceKind() const

function 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() const

function forEachTimestampGroup

template <typename F >
inline void forEachTimestampGroup(
    F && f
) const

Updated on 2026-11-13 at 20:25:40 +0000