Class ScopeTable
Writes a string representation of the metric table to the input
text writer.
Assembly: MetricSetEmitters.dll
Syntax
public class ScopeTable : TableEmitterBase, ITableVisitor
Constructors
View Source
ScopeTable(ILogger, TextWriter, IReadOnlyDictionary<Table, ISet<Expression>>, IGenericExpressionVisitor<String>)
Construct a scope table visitor.
Declaration
public ScopeTable(ILogger logger, TextWriter output, IReadOnlyDictionary<Table, ISet<Expression>> tableToExpressionsMap, IGenericExpressionVisitor<string> expressionVisitor = null)
Parameters
Properties
View Source
ExpressionVisitor
Declaration
protected override IGenericExpressionVisitor<string> ExpressionVisitor { get; }
Property Value
Overrides
Methods
View Source
CreateExpressionVisitor(ILogger)
Declaration
protected override IGenericExpressionVisitor<string> CreateExpressionVisitor(ILogger logger)
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
Returns
Overrides
View Source
FindLowDistinctnessAggregandsNames(IReadOnlyDictionary<Table, ISet<Expression>>)
Find the names of the low distinctness aggregands. These names
will be used in Mangrove.MetricSetEmitters.ScopeTable.LowDistinctnessTag(Mangrove.MetricSetSyntaxTree.Table) as the keys in the LOWDISTINCTNESS Scope hint.
Declaration
public static IReadOnlyList<string> FindLowDistinctnessAggregandsNames(IReadOnlyDictionary<Table, ISet<Expression>> tableToExpressionsMap)
Parameters
Returns
Remarks
View Source
GenerateWhereClause(IEnumerable<String>, Table)
Declaration
protected override string GenerateWhereClause(IEnumerable<string> filters, Table _)
Parameters
Returns
Overrides
View Source
VisitWithTracing(Aggregation)
Declaration
public override void VisitWithTracing(Aggregation table)
Parameters
Overrides
View Source
VisitWithTracing(DataSource)
Declaration
public override void VisitWithTracing(DataSource table)
Parameters
Overrides
View Source
VisitWithTracing(ExternTable)
Declaration
public override void VisitWithTracing(ExternTable table)
Parameters
Overrides
View Source
VisitWithTracing(Join)
Declaration
public override void VisitWithTracing(Join table)
Parameters
Type |
Name |
Description |
Join |
table |
|
Overrides
View Source
VisitWithTracing(TableReference)
Declaration
public override void VisitWithTracing(TableReference table)
Parameters
Overrides
View Source
VisitWithTracing(Union)
Declaration
public override void VisitWithTracing(Union table)
Parameters
Type |
Name |
Description |
Union |
table |
|
Overrides
Implements
Extension Methods