kumulant

GroupStatKey

class GroupStatKey<K>(name: String, val keys: K) : StatKey<GroupResult> (source)

Specialised StatKey for nested-group slots. The keys field exposes the nested schema's own StatKeys by reference, so dotted lookup composes:

object Outer : StatSchema() {<br>    val auth by group(object : StatSchema() {<br>        val successes by series(Sum)<br>    })<br>}<br>val total: SumResult = result[Outer.auth][Outer.auth.keys.successes]

Constructors

Link copied to clipboard
constructor(name: String, keys: K)

Properties

Link copied to clipboard
val keys: K

Typed handle to the nested schema's keys, for group[group.keys.foo] lookups.

Link copied to clipboard

Wire-side name registered on the underlying com.eignex.skema.Schema.

GroupStatKey

constructor(name: String, keys: K)(source)

keys

val keys: K(source)

Typed handle to the nested schema's keys, for group[group.keys.foo] lookups.