public final class SqllrProducer extends Object
docs/designs/data-lineage/06-sqllr-m2-producer-plan-zh.md).
The producer runs its own analysis with fixed options (ProducerOptions) and an observation recorder,
builds an ExplainGraph from what the analysis observed, folds it with the shared fold kernel of
lineage.v2.fold, and writes the Facts, Occurrences and writes of the L1 core. It never changes what a
legacy DataFlowAnalyzer run of the caller outputs.
The analysis, its projection (lineage.v2.shape) and dispose() run on the calling thread; the
document is built from the projection after dispose(), and could be built on any thread (plan 09, slice
1b). The result holds plain values.
| Modifier and Type | Method and Description |
|---|---|
static ProducerResult |
produce(List<SqllrInput> inputs,
ProducerConfig config)
Analyses the inputs together (DDL and views in one input are visible to the others, in input order) and
returns the document.
|
public static ProducerResult produce(List<SqllrInput> inputs, ProducerConfig config)
SqllrProducerException - when the inputs or the configuration are refused