LineLengthComputer
LineLengthComputer
Computer that calculates the cumulative length of line data. More…
#include <LineLengthComputer.h>
Inherits from IColumnComputer< float >
Public Functions
| Name | |
|---|---|
| LineLengthComputer(std::shared_ptr< LineData > lineSource, std::string sourceName, std::shared_ptr< TimeFrame > sourceTimeFrame) | |
| virtual std::pair< std::vector< float >, ColumnEntityIds > | compute(ExecutionPlan const & plan) const override The core batch computation method. |
| std::vector< std::string > | getDependencies() const override |
| std::string | getSourceDependency() const override |
| EntityIdStructure | getEntityIdStructure() const override |
Additional inherited members
Public Functions inherited from IColumnComputer< float >
| Name | |
|---|---|
| virtual | ~IColumnComputer() =default |
| IColumnComputer(IColumnComputer const & ) =delete | |
| IColumnComputer & | operator=(IColumnComputer const & ) =delete |
| IColumnComputer(IColumnComputer && ) =delete | |
| IColumnComputer & | operator=(IColumnComputer && ) =delete |
| 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< float >
| Name | |
|---|---|
| IColumnComputer() =default |
Detailed Description
class LineLengthComputer;Computer that calculates the cumulative length of line data.
Source type: LineData Selector type: Timestamp Output type: float
Given a line source and a Timestamp-based ExecutionPlan, calculates the cumulative length of each line. Multiple lines at the same timestamp are expanded into separate rows, each with the length of the corresponding line.
Public Functions Documentation
function LineLengthComputer
inline LineLengthComputer(
std::shared_ptr< LineData > lineSource,
std::string sourceName,
std::shared_ptr< TimeFrame > sourceTimeFrame
)function compute
inline virtual std::pair< std::vector< float >, ColumnEntityIds > compute(
ExecutionPlan const & plan
) const overrideThe core batch computation method.
Parameters:
- plan The execution plan containing cached access patterns.
Return: Vector of computed values for the entire column.
Reimplements: IColumnComputer::compute
This method performs the actual computation of all column values based on the provided execution plan. The execution plan contains the cached access patterns (indices or intervals) for the data source.
function getDependencies
inline std::vector< std::string > getDependencies() const overridefunction getSourceDependency
inline std::string getSourceDependency() const overridefunction getEntityIdStructure
inline EntityIdStructure getEntityIdStructure() const overrideUpdated on 2026-11-13 at 20:25:40 +0000