Show / Hide Table of Contents

Class MutableMetricsPlan

Mutable version of a MetricsPlan optimized for fast Expression and Table lookup.

Inheritance
Object
MutableMetricsPlan
Implements
ILookupMetricsPlan
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Mangrove.Parsing
Assembly: Mangrove.Parsing.dll
Syntax
public class MutableMetricsPlan : ILookupMetricsPlan

Constructors

View Source

MutableMetricsPlan(MetricsPlan, IMetricsPlanValidator)

Declaration
public MutableMetricsPlan(MetricsPlan context, IMetricsPlanValidator validator)
Parameters
Type Name Description
MetricsPlan context
IMetricsPlanValidator validator

Properties

View Source

CurrentTable

Declaration
public IParsed<Table> CurrentTable { get; }
Property Value
Type Description
IParsed<Table>

Methods

View Source

AddExpression(Expression)

Declaration
public void AddExpression(Expression expr)
Parameters
Type Name Description
Expression expr
View Source

AddTable(Table)

Declaration
public void AddTable(Table table)
Parameters
Type Name Description
Table table
View Source

Context()

Obtain the current "state" (context) of this parser in immutable form.

Declaration
public MetricsPlan Context()
Returns
Type Description
MetricsPlan
Remarks

This method has complexity O(expressions + tables + validator complexity).

View Source

GetExpressions()

Declaration
public IReadOnlyList<Expression> GetExpressions()
Returns
Type Description
IReadOnlyList<Expression>
View Source

GetTables()

Declaration
public IReadOnlyList<Table> GetTables()
Returns
Type Description
IReadOnlyList<Table>
View Source

LookupDataSource()

Declaration
public IParsed<DataSource> LookupDataSource()
Returns
Type Description
IParsed<DataSource>
View Source

LookupExpression(String, String)

Declaration
public IParsed<ColumnReference> LookupExpression(string name, string table)
Parameters
Type Name Description
String name
String table
Returns
Type Description
IParsed<ColumnReference>
View Source

LookupOutputTable(String)

Declaration
public IParsed<Aggregation> LookupOutputTable(string _)
Parameters
Type Name Description
String _
Returns
Type Description
IParsed<Aggregation>
View Source

LookupTable(String)

Declaration
public IParsed<Table> LookupTable(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IParsed<Table>
View Source

Remove(String, String)

Declaration
public bool Remove(string name, string table)
Parameters
Type Name Description
String name
String table
Returns
Type Description
Boolean
View Source

Replace(String, String, ColumnReference)

Replace the ColumnReference with given name and table with replacement, updating all descendants of that node.

Declaration
public bool Replace(string name, string table, ColumnReference replacement)
Parameters
Type Name Description
String name
String table
ColumnReference replacement
Returns
Type Description
Boolean

Implements

ILookupMetricsPlan

Extension Methods

ObjectExtensions.EventId(Object)
  • View Source
Back to top Generated by DocFX