Package com.darkcollective.relix.processor.provenance.internal
package com.darkcollective.relix.processor.provenance.internal
The engine-side machinery behind
com.darkcollective.relix.processor.provenance: not exported by the published
artifact. What follows describes the package as a whole, as it stood before the split.
The opt-in annotated-relation (K-relation) model that carries provenance
annotations through execution.
This package bridges the engine's Row
runtime tuples to the Semiring algebra:
an Annotated pairs a row with
a semiring element, and an
AnnotatedRelation is the
canonical K-relation — distinct tuples mapped to the ⊕-combination of their
derivations, zero-annotated tuples absent.
The model is opt-in: it is constructed only when a provenance
mode is active, so the default Stream<Row> evaluation path is untouched and
pays nothing. The annotation is always a side-channel, never an ordinary data
column, keeping the relational algebra closed. This package is the carrier model
and its lift/normalise/forget operations;
ProvenanceEvaluator threads
the annotations through the positive operators (σ/π/×/⋈/∪).
- See Also:
-
ClassDescriptionAssigns the provenance annotation of a base-tuple occurrence — the
Kvalue aProvenanceEvaluatorlifts each leaf row to before the positive operators thread⊕/⊗above it.Evaluates a logicalRelNodetree as aK-relation, threading a chosenSemiringthrough the positive-algebra operators This is the bridge from the engine's ordinaryStream<Row>evaluation to the annotated model.