Class SplitMetricsPlan
Given a MetricsPlan, split it into two metrics plan (let's call them "produce" and "consume").
"Produce" plan describes the computation before the the first Aggregation. In other words, it contains DataSources, Joins, TableReferences, Externs or Unions. This can be viewed as "data preparation" part.
"Consume" plan contains all the Aggregations from the original plan. "Consume" plan has a unique DataSource, whose DataSourceColumns are determined automatically from the original MetricsPlan.
Implements
Inherited Members
Namespace: Mangrove.MetricSetTransformers.Vectorization
Assembly: MetricSetTransformers.dll
Syntax
public class SplitMetricsPlan : IGenericMetricsPlanTransformer<(MetricsPlan, MetricsPlan)>
Remarks
NOTE: This class makes the assumption that the original MetricsPlan has a UNIQUE chain of Aggregation tables (i.e. there is no "branching" in the computation). In particular, this means that there is a unique first aggregation, and hence unique highest non-aggregation table that it can turn into a DataSource.
Constructors
View SourceSplitMetricsPlan()
Declaration
public SplitMetricsPlan()
Methods
View SourceTransform(MetricsPlan)
Declaration
public (MetricsPlan, MetricsPlan) Transform(MetricsPlan plan)
Parameters
Type | Name | Description |
---|---|---|
MetricsPlan | plan |
Returns
Type | Description |
---|---|
ValueTuple<MetricsPlan, MetricsPlan> |