Skip to main content

Neuralyzer::Entity::Lineage::LineageRecorder

Neuralyzer::Entity::Lineage::LineageRecorder

#include <LineageRecorder.hpp>

Public Functions

Name
void record(LineageRegistry & registry, std::string const & output_key, std::string const & input_key, Neuralyzer::Transforms::V2::TransformLineageType lineage_type)
Record lineage for a derived container.
void recordMultiInput(LineageRegistry & registry, std::string const & output_key, std::vector< std::string > const & input_keys, Neuralyzer::Transforms::V2::TransformLineageType lineage_type)
Record lineage for multi-input transforms.
void recordSource(LineageRegistry & registry, std::string const & data_key)
Record source lineage (for original/loaded data).
void recordFileSource(LineageRegistry & registry, std::string const & data_key, FileOrigin file_origin)
Record source lineage with filesystem provenance.

Public Functions Documentation

function record

static void record(
    LineageRegistry & registry,
    std::string const & output_key,
    std::string const & input_key,
    Neuralyzer::Transforms::V2::TransformLineageType lineage_type
)

Record lineage for a derived container.

Parameters:

  • registry The LineageRegistry to record to
  • output_key Key of the derived (output) container
  • input_key Key of the source (input) container
  • lineage_type The transform’s lineage type

Exceptions:

  • std::invalid_argument if lineage_type is None or requires more info

Converts TransformLineageType to appropriate Lineage::Descriptor and registers it in the LineageRegistry.

function recordMultiInput

static void recordMultiInput(
    LineageRegistry & registry,
    std::string const & output_key,
    std::vector< std::string > const & input_keys,
    Neuralyzer::Transforms::V2::TransformLineageType lineage_type
)

Record lineage for multi-input transforms.

Parameters:

  • registry The LineageRegistry to record to
  • output_key Key of the derived (output) container
  • input_keys Keys of the source (input) containers
  • lineage_type The transform’s lineage type (typically OneToOneByTime)

For transforms like LineMinPointDist that take multiple inputs.

function recordSource

static void recordSource(
    LineageRegistry & registry,
    std::string const & data_key
)

Record source lineage (for original/loaded data).

Parameters:

  • registry The LineageRegistry to record to
  • data_key Key of the source container

Marks a container as source data with no parent dependencies.

function recordFileSource

static void recordFileSource(
    LineageRegistry & registry,
    std::string const & data_key,
    FileOrigin file_origin
)

Record source lineage with filesystem provenance.

Parameters:

  • registry The LineageRegistry to record to.
  • data_key Key of the loaded source container.
  • file_origin Filesystem provenance for the load event.

Postcondition: The data key is marked as source data with file-origin metadata.


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