Table of Contents

Class AggregateValue

Namespace
The.SQL.QIR.Values
Assembly
Instagile.dll

Like a function, but with different semantic meaning to the overall query

[MessagePackObject(false)]
public sealed class AggregateValue : Value, IEquatable<Value>
Inheritance
AggregateValue
Implements
Inherited Members

Constructors

AggregateValue(AggregateOperator, Value, bool)

public AggregateValue(AggregateOperator name, Value argument, bool isDistinct)

Parameters

name AggregateOperator
argument Value
isDistinct bool

AggregateValue(AggregateOperator, Value, bool, WindowPartition?)

public AggregateValue(AggregateOperator name, Value argument, bool isDistinct, WindowPartition? window)

Parameters

name AggregateOperator
argument Value
isDistinct bool
window WindowPartition

Fields

Argument

[Key(1)]
public readonly Value Argument

Field Value

Value

IsDistinct

[Key(2)]
public bool IsDistinct

Field Value

bool

Name

[Key(0)]
public readonly AggregateOperator Name

Field Value

AggregateOperator

Window

[Key(3)]
public readonly WindowPartition? Window

Field Value

WindowPartition

Properties

IsAggregate

Whether the value is a projection of an entire relation instead of a single row.

[IgnoreMember]
public override Aggregated IsAggregate { get; }

Property Value

Aggregated

IsLiteral

Whether the value is self-paranthesing.

[IgnoreMember]
public override bool IsLiteral { get; }

Property Value

bool

IsNullable

Whether the value can be NULL at runtime.

[IgnoreMember]
public override bool IsNullable { get; }

Property Value

bool

Joins

Joins required to reach this value.

[IgnoreMember]
public override IEnumerable<Join> Joins { get; }

Property Value

IEnumerable<Join>

Methods

Equals(Value?)

Indicates whether the current object is equal to another object of the same type.

public override bool Equals(Value? obj)

Parameters

obj Value

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Update(AggregateOperator, Value, bool)

public AggregateValue Update(AggregateOperator name, Value argument, bool isDistinct)

Parameters

name AggregateOperator
argument Value
isDistinct bool

Returns

AggregateValue

WithSource(Table, Table)

public override Value WithSource(Table oldSource, Table newSource)

Parameters

oldSource Table
newSource Table

Returns

Value