Skip to main content

TablePipeline

TablePipeline

Factory and execution engine for table construction pipelines.

#include <TablePipeline.hpp>

Public Functions

Name
TablePipeline(TableRegistry * table_registry, DataManager * data_manager)
Construct a new Table Pipeline object.
bool loadFromJson(nlohmann::json const & json_config)
Load pipeline configuration from JSON.
bool loadFromJsonFile(std::string const & json_file_path)
Load pipeline configuration from JSON file.
TablePipelineResult execute(TablePipelineProgressCallback progress_callback =[nullptr])
Execute the loaded pipeline.
TableBuildResult buildTable(TableConfiguration const & config, std::function< void(int, int)> progress_callback =[nullptr])
Execute a single table configuration.
std::vector< TableConfiguration > const & getTableConfigurations() const
Get the loaded table configurations.
void clear()
Clear all loaded configurations.

Public Functions Documentation

function TablePipeline

TablePipeline(
    TableRegistry * table_registry,
    DataManager * data_manager
)

Construct a new Table Pipeline object.

Parameters:

  • table_manager Pointer to the table manager
  • data_manager Pointer to the data manager

function loadFromJson

bool loadFromJson(
    nlohmann::json const & json_config
)

Load pipeline configuration from JSON.

Parameters:

  • json_config JSON configuration object

Return:

  • true if configuration was loaded successfully
  • false if there were errors in the configuration

function loadFromJsonFile

bool loadFromJsonFile(
    std::string const & json_file_path
)

Load pipeline configuration from JSON file.

Parameters:

  • json_file_path Path to JSON configuration file

Return:

  • true if configuration was loaded successfully
  • false if file couldn’t be read or parsed

function execute

TablePipelineResult execute(
    TablePipelineProgressCallback progress_callback =nullptr
)

Execute the loaded pipeline.

Parameters:

  • progress_callback Optional progress callback

Return: TablePipelineResult containing execution results

function buildTable

TableBuildResult buildTable(
    TableConfiguration const & config,
    std::function< void(int, int)> progress_callback =nullptr
)

Execute a single table configuration.

Parameters:

  • config The table configuration to build
  • progress_callback Optional progress callback for column building

Return: TableBuildResult containing build results

function getTableConfigurations

inline std::vector< TableConfiguration > const & getTableConfigurations() const

Get the loaded table configurations.

Return: Vector of table configurations

function clear

void clear()

Clear all loaded configurations.


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