Show / Hide Table of Contents

Class UnaryWindowFunction

Expression which indicates a window function. These act as "local" aggregations, allowing specifying a unary aggregationtype, and column to apply it to. The granularity of the aggregation is defined by the sets of rows where the values match for each of the fields that are partitioned by. It doesn't currently support "ORDER BY" part of expression.

Inheritance
Object
Expression
Expression<UnaryWindowFunction, Table>
UnaryWindowFunction
Implements
IVisitable<IExpressionVisitor>
ICloneable<UnaryWindowFunction, Table, Expression>
ICloneable<Expression>
IDirectedAcyclicGraph<Expression>
Inherited Members
Expression<UnaryWindowFunction, Table>.Table
Expression<UnaryWindowFunction, Table>.Clone(Table, IReadOnlyList<Expression>)
Expression<UnaryWindowFunction, Table>.Clone(IReadOnlyList<Expression>)
Expression.Table
Expression.Clone(IReadOnlyList<Expression>)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Mangrove.MetricSetSyntaxTree.ExpressionNodes
Assembly: MetricSetSyntaxTree.dll
Syntax
public class UnaryWindowFunction : Expression<UnaryWindowFunction, Table>, IVisitable<IExpressionVisitor>, ICloneable<UnaryWindowFunction, Table, Expression>, ICloneable<Expression>, IDirectedAcyclicGraph<Expression>

Constructors

View Source

UnaryWindowFunction(Table, UnaryAggregationKind, Expression, IEnumerable<Expression>)

Declaration
public UnaryWindowFunction(Table table, UnaryAggregationKind aggregationKind, Expression expression, IEnumerable<Expression> partitions)
Parameters
Type Name Description
Table table
UnaryAggregationKind aggregationKind
Expression expression
IEnumerable<Expression> partitions

Properties

View Source

AggregationKind

Declaration
public UnaryAggregationKind AggregationKind { get; }
Property Value
Type Description
UnaryAggregationKind
View Source

Expression

Declaration
public Expression Expression { get; }
Property Value
Type Description
Expression
View Source

Parents

Declaration
[JsonIgnore]
public override IReadOnlyList<Expression> Parents { get; }
Property Value
Type Description
IReadOnlyList<Expression>
Overrides
Expression.Parents
View Source

Partitions

Declaration
public IReadOnlyList<Expression> Partitions { get; }
Property Value
Type Description
IReadOnlyList<Expression>

Methods

View Source

Accept(IExpressionVisitor)

Declaration
public override void Accept(IExpressionVisitor visitor)
Parameters
Type Name Description
IExpressionVisitor visitor
Overrides
Expression.Accept(IExpressionVisitor)
View Source

Clone(Table, IReadOnlyList<Expression>)

Declaration
public override UnaryWindowFunction Clone(Table table, IReadOnlyList<Expression> parents)
Parameters
Type Name Description
Table table
IReadOnlyList<Expression> parents
Returns
Type Description
UnaryWindowFunction
Overrides
Mangrove.MetricSetSyntaxTree.Expression<Mangrove.MetricSetSyntaxTree.ExpressionNodes.UnaryWindowFunction, Mangrove.MetricSetSyntaxTree.Table>.Clone(Mangrove.MetricSetSyntaxTree.Table, System.Collections.Generic.IReadOnlyList<Mangrove.MetricSetSyntaxTree.Expression>)
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Expression.ToString()

Implements

IVisitable<TVisitor>
ICloneable<TSubnode, TIdentifier, TNode>
ICloneable<T>
IDirectedAcyclicGraph<T>

Extension Methods

ExpressionExtensions.WrapUniqueName(Expression, String)
ExpressionExtensions.WrapName(Expression, String)
ExpressionExtensions.Unwrap(Expression, Boolean)
ExpressionExtensions.UnwrapParentheses(Expression)
ExpressionExtensions.NeedsColumnReferenceWrap(Expression)
ExpressionExtensions.TopParentsOfType<TParent>(Expression)
ExpressionExtensions.References(Expression, ISet<Table>)
ExpressionExtensions.IsAggregation(Expression)
ExpressionExtensions.IsOperation(Expression)
ExpressionExtensions.IsConstant(Expression)
ExpressionExtensions.Type(Expression)
ExpressionExtensions.IsOfNullableType(Expression)
ExpressionExtensions.IsOfNonNullableType(Expression)
IDirectedAcyclicGraphExtensions.Ancestors(Expression, Boolean)
IDirectedAcyclicGraphExtensions.Closure(Expression)
ObjectExtensions.EventId(Object)
  • View Source
Back to top Generated by DocFX