Skip to main content

GroupingResult

Namespace: Meshmakers.Octo.Runtime.Contracts.Repositories.Query

Represents the result of a grouping

public class GroupingResult

Inheritance ObjectGroupingResult

Properties

GroupByAttributeNames

Attribute names that were used to group the result

public IEnumerable<string> GroupByAttributeNames { get; }

Property Value

IEnumerable<String>

Keys

Returns the values of the keys that were used to group the result

public IEnumerable<object> Keys { get; }

Property Value

IEnumerable<Object>

Count

Returns the count of items in the group

public long Count { get; }

Property Value

Int64

CountStatistics

Returns the count statistics for each attribute

public IEnumerable<StatisticsResult> CountStatistics { get; }

Property Value

IEnumerable<StatisticsResult>

MinStatistics

Returns the min statistics for each attribute

public IEnumerable<StatisticsResult> MinStatistics { get; }

Property Value

IEnumerable<StatisticsResult>

MaxStatistics

Returns the max statistics for each attribute

public IEnumerable<StatisticsResult> MaxStatistics { get; }

Property Value

IEnumerable<StatisticsResult>

AvgStatistics

Returns the average value statistics for each attribute

public IEnumerable<StatisticsResult> AvgStatistics { get; }

Property Value

IEnumerable<StatisticsResult>

Constructors

GroupingResult(IEnumerable<String>, IEnumerable<Object>, Int64, IEnumerable<StatisticsResult>, IEnumerable<StatisticsResult>, IEnumerable<StatisticsResult>, IEnumerable<StatisticsResult>)

Constructor

public GroupingResult(IEnumerable<string> groupByAttributeNames, IEnumerable<object> keys, long count, IEnumerable<StatisticsResult> countStatistics, IEnumerable<StatisticsResult> minStatistics, IEnumerable<StatisticsResult> maxStatistics, IEnumerable<StatisticsResult> avgStatistics)

Parameters

groupByAttributeNames IEnumerable<String>
The attribute names that were used to group the result

keys IEnumerable<Object>
Values of the keys that were used to group the result

count Int64
Count of items in the group

countStatistics IEnumerable<StatisticsResult>
Count statistics for each attribute

minStatistics IEnumerable<StatisticsResult>
Min statistics for each attribute

maxStatistics IEnumerable<StatisticsResult>
Max statistics for each attribute

avgStatistics IEnumerable<StatisticsResult>
Average value statistics for each attribute