Skip to main content

MultiComputerOutputView

MultiComputerOutputView

Adapter that exposes one output of an IMultiColumnComputer as a normal IColumnComputer. More…

#include <MultiComputerOutputView.hpp>

Inherits from IColumnComputer< T >

Public Classes

Name
struct SharedBatchCache

Public Functions

Name
MultiComputerOutputView(std::shared_ptr< IMultiColumnComputer< T > > multiComputer, std::shared_ptr< SharedBatchCache > sharedCache, size_t outputIndex)
virtual std::pair< std::vector< T >, 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< T >

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< T >

Name
IColumnComputer() =default

Detailed Description

template <typename T >
class MultiComputerOutputView;

Adapter that exposes one output of an IMultiColumnComputer as a normal IColumnComputer. ## Public Functions Documentation

function MultiComputerOutputView

inline explicit MultiComputerOutputView(
    std::shared_ptr< IMultiColumnComputer< T > > multiComputer,
    std::shared_ptr< SharedBatchCache > sharedCache,
    size_t outputIndex
)

function compute

inline virtual std::pair< std::vector< T >, ColumnEntityIds > compute(
    ExecutionPlan const & plan
) const override

The 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 override

function getSourceDependency

inline std::string getSourceDependency() const override

function getEntityIdStructure

inline EntityIdStructure getEntityIdStructure() const override

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