---
title: "AggSpec"
sidebar_label: "AggSpec"
description: "Kotlin binding reference: AggSpec."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[AggSpec](index.md)

# AggSpec

[common]\
data class [AggSpec](index.md)(val column: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), val agg: [Agg](../Agg/index.md) = Agg.SUM, val outName: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) = &quot;&quot;)

One aggregation of a [Table.groupBy](../Table/groupBy.md): the column, the reduction and the output name (empty for `<column>_<agg>`).

## Constructors

| | |
|---|---|
| [AggSpec](AggSpec.md) | [common]<br>constructor(column: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), agg: [Agg](../Agg/index.md) = Agg.SUM, outName: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) = &quot;&quot;) |

## Properties

| Name | Summary |
|---|---|
| [agg](agg.md) | [common]<br>val [agg](agg.md): [Agg](../Agg/index.md) |
| [column](column.md) | [common]<br>val [column](column.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |
| [outName](outName.md) | [common]<br>val [outName](outName.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |