Class ReplaceTablesUsingVisitor
The analogue of ReplaceExpressionsUsingVisitor but for Table visitors. Applies the IGenericTableVisitor<T> to all Table nodes in a MetricsPlan, and uses the resulting "Table replacement map" to modify Expression nodes as needed.
Implements
Inherited Members
Namespace: Mangrove.MetricSetTransformers.Utilities
Assembly: MetricSetTransformers.dll
Syntax
public class ReplaceTablesUsingVisitor : LoggingTransformerBase, IMetricsPlanTransformer
Constructors
View SourceReplaceTablesUsingVisitor(IGenericTableVisitor<IDictionary<Table, Table>>)
Declaration
public ReplaceTablesUsingVisitor(IGenericTableVisitor<IDictionary<Table, Table>> visitor)
Parameters
Type | Name | Description |
---|---|---|
IGenericTableVisitor<IDictionary<Table, Table>> | visitor |
Methods
View SourceTransformWithTracing(MetricsPlan, IMetricsPlanValidator)
Declaration
public override MetricsPlan TransformWithTracing(MetricsPlan plan, IMetricsPlanValidator validator)
Parameters
Type | Name | Description |
---|---|---|
MetricsPlan | plan | |
IMetricsPlanValidator | validator |
Returns
Type | Description |
---|---|
MetricsPlan |