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() {
    val auth by group(object : StatSchema() {
        val successes by series(Sum)
    })
}
val total: SumResult = result[Outer.auth][Outer.auth.keys.successes]

Constructors

GroupStatKey

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

Properties

keys

val keys: K(source)

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.